Description
This is the component provided by the Advanced Cipher block.
Component name: advanced_cipher
.
This is the component provided by the Advanced Cipher block.
Component name: advanced_cipher
.
decrypt(message:string, privateKey:table):string
Decrypts the specified message using the specified RSA key
encrypt(message:string, publicKey:table):string;
Encrypts the specified message using the specified public RSA key
createKeySet(num1:number, num2:number):userdata
Creates the key generator from the two given prime numbers
createRandomKeySet([keylength:number]):userdata
Creates the key generator from two random prime numbers (optionally with given key length)
finished():boolean
Returns whether key generation has finished
getKeys():table, table
Returns the tuo generated keys, or nil if they are still being generated