...
Code Block |
---|
# grep datacenter.id /opt/abiquo/config/abiquo.properties
abiquo.datacenter.id = ss008063
## With openssl toolkit
# echo -n ss008063 | openssl dgst -sha1 | cut -f2 -d' '
2af9eaa6f48878b7952cbca17bc3d784b642d2ac
## With ruby
# ruby -e 'require "digest/sha1"; puts Digest::SHA1.hexdigest "ss008063"'
2af9eaa6f48878b7952cbca17bc3d784b642d2ac
## With python
# python -c "import hashlib; print hashlib.sha1('ss008063').hexdigest()"
2af9eaa6f48878b7952cbca17bc3d784b642d2ac |
...