mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
44 lines
1.4 KiB
JavaScript
44 lines
1.4 KiB
JavaScript
import Cipher from "../../operations/Cipher.js";
|
|
|
|
|
|
/**
|
|
* Ciphers module.
|
|
*
|
|
* Libraries:
|
|
* - CryptoJS
|
|
* - Blowfish
|
|
* - Forge
|
|
*
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
* @copyright Crown Copyright 2017
|
|
* @license Apache-2.0
|
|
*/
|
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
|
|
|
OpModules.Ciphers = {
|
|
"AES Encrypt": Cipher.runAesEnc,
|
|
"AES Decrypt": Cipher.runAesDec,
|
|
"Blowfish Encrypt": Cipher.runBlowfishEnc,
|
|
"Blowfish Decrypt": Cipher.runBlowfishDec,
|
|
"DES Encrypt": Cipher.runDesEnc,
|
|
"DES Decrypt": Cipher.runDesDec,
|
|
"Triple DES Encrypt": Cipher.runTripleDesEnc,
|
|
"Triple DES Decrypt": Cipher.runTripleDesDec,
|
|
"Derive PBKDF2 key": Cipher.runPbkdf2,
|
|
"Derive EVP key": Cipher.runEvpkdf,
|
|
"RC4": Cipher.runRc4,
|
|
"RC4 Drop": Cipher.runRc4drop,
|
|
"RC2 Encrypt": Cipher.runRc2Enc,
|
|
"RC2 Decrypt": Cipher.runRc2Dec,
|
|
"Vigenère Encode": Cipher.runVigenereEnc,
|
|
"Vigenère Decode": Cipher.runVigenereDec,
|
|
"Bifid Cipher Encode": Cipher.runBifidEnc,
|
|
"Bifid Cipher Decode": Cipher.runBifidDec,
|
|
"Affine Cipher Encode": Cipher.runAffineEnc,
|
|
"Affine Cipher Decode": Cipher.runAffineDec,
|
|
"Atbash Cipher": Cipher.runAtbash,
|
|
"Substitute": Cipher.runSubstitute,
|
|
"Pseudo-Random Number Generator": Cipher.runPRNG,
|
|
};
|
|
|
|
export default OpModules;
|