Microsoft Small Basic

Program Listing: FVQ478
TextWindow.WriteLine(TextPlus.GetCharacterCode("A"))

'--------------------------------------------------------------------------------------

TextWindow.WriteLine(Security.Decrypt(Security.Encrypt("Text", "password", "salt"), "password", "sal"))

'Utfylling er ugyldig og kan ikke fjernes. (Padding is invalid and cannot be removed.)

' ved System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
' ved System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
' ved System.Security.Cryptography.CryptoStream.Read(Byte[] buffer, Int32 offset, Int32 count)
' ved OskariPrograms.SmallBasic.Library.Security.Decrypt(Primitive Text, Primitive Password, Primitive Salt)
' ved _SmallBasicProgram._Main()