# Creation and assign of the cryptokey let cryptoKey = xml.CryptoKey.Create("http://www.w3.org/2001/04/xmlenc#aes256-cbc") call cryptokey.setKey(symkey) # Encryption let encrypted_str = xml.Encryption.EncryptString(cryptoKey, plaintext)