Module: crypto/algorithms/base

Internal module. Defines the base classes of the encryption implementations
Source:

Classes

DecryptionAlgorithm
DecryptionError
EncryptionAlgorithm

Members

(static) DECRYPTION_CLASSES :Object.<string, function(new:module:crypto/algorithms/base.DecryptionAlgorithm)>

map of registered encryption algorithm classes. Map from string to DecryptionAlgorithm class
Type:
Source:

(static) DecryptionAlgorithm

Source:

(static) ENCRYPTION_CLASSES :Object.<string, function(new:module:crypto/algorithms/base.EncryptionAlgorithm)>

map of registered encryption algorithm classes. A map from string to EncryptionAlgorithm class
Type:
Source:

(static) EncryptionAlgorithm

Source:

Methods

(static) registerAlgorithm(algorithm, encryptor, decryptor)

Registers an encryption/decryption class for a particular algorithm
Parameters:
Name Type Description
algorithm string algorithm tag to register for
encryptor class EncryptionAlgorithm implementation
decryptor class DecryptionAlgorithm implementation
Source: