fentec-project / gofe

Functional encryption library in Go
Apache License 2.0
166 stars 51 forks source link

How to convert key to short code #39

Closed ystyle closed 3 years ago

ystyle commented 4 years ago

like this

1F3B84C82C7D30F0387DE8291391E85A I saw on this website: https://asecuritysite.com/encryption/go_abe

tilenmarc commented 4 years ago

Hi! Sorry for the late response, it's summer/vacations time. You will need to write some code to translate a key into a string. One method to do so is to use gob package. This will allow you to change a go struct into a string, see an example on the website. In the case of GoFE, for example in ABE FAME scheme, the key is a struct and you can change it into a string. Let me know if you managed or have some further questions. Best, Tilen

ystyle commented 4 years ago

It works(use gob), but I can’t find a way to compress it so short