Advertisement
FlyFar

crypto_test.go

Dec 17th, 2023
1,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.18 KB | Cybersecurity | 0 0
  1. package main
  2.  
  3. import (
  4.     "testing"
  5. )
  6.  
  7. func TestCrypto(t *testing.T) {
  8.     file := "test.docx"
  9.     priv := Generate()
  10.  
  11.     encrypt(file, priv)
  12.     decrypt(file+LockedExtension, priv)
  13. }
Tags: crypto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement