Encrypted Chat Room 4

xiaoxiao2021-03-06  19

Class Encryption

This Class Contains The Encryption Methods. It is a static class, containing only Operations and no data. It ustements Single Columnar Transposition Cipher Encryption.

Operation Specifications

Encrypt (Origmsg: String, Key: String): String

- Encrypts a Message Using the key

Pre: Key Is Valid

Post: an encrypted message is return.

Decrypt (Emsg: string, key: string): String

- Decrypts a Message Using the key

Pre: Key Is Valid

Post: a decrypted message is returned.

转载请注明原文地址:https://www.9cbs.com/read-43869.html

New Post(0)