瀏覽代碼

Implement `stringToMessage`

DricomDragon 5 年之前
父節點
當前提交
e886445662
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      tp/rsa/main.hs

+ 8 - 0
tp/rsa/main.hs

@@ -0,0 +1,8 @@
+-- RSA LAB
+
+import Data.Char
+
+type Message = [Int]
+
+stringToMessage::String -> Message
+stringToMessage = map ord