summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oracle.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oracle.go b/lib/oracle.go
index f117c98..a2e75aa 100644
--- a/lib/oracle.go
+++ b/lib/oracle.go
@@ -69,6 +69,12 @@ func OracleAESEncryptECB(in []byte) []byte {
return AESEncryptECB(append(in, Base64ToBytes(oracleUnknown)...), oracleKey)
}
+func OracleAESVarEncryptECB(in []byte) []byte {
+ in = append(oracleRandom, in...)
+ in = append(in, Base64ToBytes(oracleUnknown)...)
+ return AESEncryptECB(in, oracleKey)
+}
+
// Return a random number from range [min, max]
func randomInt(min, max int64) int64 {
if min >= max {