Coherence
Search…
VMAC

MAC

In order to understand hex and type parameters read Hash

VMAC

spec
Description: Message authentication code based on universal hash.
Uses: High performance on 64-bit machines

How to ???

1
import requests
2
import json
3
import os,binascii
4
5
def sending(message):
6
url = 'http://127.0.0.1:6613/'
7
response = requests.post(url, data=message)
8
print response.content
9
return response.content
10
11
data_js='{"version":1,"algorithm":"VMAC","type":"string","plaintext":"Hello world!",\
12
"hex":0,"key":"0123456789ABCDEF0123456789ABCDEF", "iv":"0123456789ABCDEF0123456789ABCDEF",\
13
"family":"aes"}'
14
sending(data_js)
Copied!
Calculate VMAC-AES to string "Hello world!" with the key and iv given.
On data_js["family"] can be one of {"aes", "rc6", "mars","serpent","twofish', "cast256"}
Json to HMAC string
1
{"version":1,"algorithm":"VMAC","type":"string","plaintext":"your string","hex":BOOL,
2
"key":"Hex stringsize=32-64","iv":"Hex stringsize=32","family":"block flavor"}
Copied!
Json to HMAC file
1
{"version":1,"algorithm":"CMAC","type":"file","file":"your file",
2
"key":"Hex stringsize=32-64","iv":"Hex stringsize=32","family":"block flavor"}
Copied!
Last modified 9mo ago
Copy link