Displaying 17 results from an estimated 17 matches for "hashlib".
2016 Feb 03
2
Python hashlib and ripemd160
Hi - I think the patent monster has struck again.
rmd = hashlib.new('ripemd160',binascii.unhexlify(someString)).hexdigest()
That fails - ValueError: unsupported hash type
From some googling, it appears that the supported hash types are from
OpenSSL and that means the OpenSSL in CentOS doesn't support ripemd160.
I've worked around other stuf...
2015 Jun 30
2
how is the sha fingerprint generated?
You really don't need openssl for that.
And the fingerprints are simple.
Here is a python script that do the same as ssh-keygen
-fl /path/to/key :
#!/usr/bin/env python3
import binascii
import hashlib
import sys
if __name__ == "__main__":
key = binascii.a2b_base64(sys.argv[1])
if sys.argv[2] == "md5":
m = hashlib.new("md5")
m.update(key)
print(m.hexdigest())
elif sys.argv[2] == "sha256":
m = hashlib.new("sh...
2016 Feb 03
1
Python hashlib and ripemd160
...;
> usually works like ./configure --prefix=/opt/python-alternative and then
> other normal stuff..
>
> --
> Eero
>
> 2016-02-03 12:52 GMT+02:00 Alice Wonder <alice at domblogger.net>:
>
>> Hi - I think the patent monster has struck again.
>>
>> rmd = hashlib.new('ripemd160',binascii.unhexlify(someString)).hexdigest()
>>
>> That fails - ValueError: unsupported hash type
>>
>> From some googling, it appears that the supported hash types are from
>> OpenSSL and that means the OpenSSL in CentOS doesn't support rip...
2016 Feb 03
0
Python hashlib and ripemd160
...o another directory like
/opt/python-alternative?
usually works like ./configure --prefix=/opt/python-alternative and then
other normal stuff..
--
Eero
2016-02-03 12:52 GMT+02:00 Alice Wonder <alice at domblogger.net>:
> Hi - I think the patent monster has struck again.
>
> rmd = hashlib.new('ripemd160',binascii.unhexlify(someString)).hexdigest()
>
> That fails - ValueError: unsupported hash type
>
> From some googling, it appears that the supported hash types are from
> OpenSSL and that means the OpenSSL in CentOS doesn't support ripemd160.
>
> I...
2013 Jan 04
3
AIX: TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
...ripting
File "/admin/tst/build/samba-4.0.0/buildtools/wafadmin/Scripting.py", line 9, in <module>
import Utils, Configure, Build, Logs, Options, Environment, Task
File "/admin/tst/build/samba-4.0.0/buildtools/wafadmin/Utils.py", line 134, in <module>
from hashlib import md5
File "/opt/freeware/lib/python2.6/hashlib.py", line 117, in <module>
exec funcName + ' = f'
TypeError: unsupported operand type(s) for +: '_hashlib.HASH' and 'str'
bash-4.2#
Python was installed just for this purpose, but otherwise we don...
2010 Feb 19
0
[PATCH] Help reduce size of iso by symlinking initrd's from isolinux/ and EFI/boot if md5's match
...d.py | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/edit-livecd.py b/edit-livecd.py
index 279b225..ebcb7a6 100644
--- a/edit-livecd.py
+++ b/edit-livecd.py
@@ -26,7 +26,7 @@ import shutil
import subprocess
import optparse
import logging
-
+import hashlib
from imgcreate.debug import *
from imgcreate.fs import *
from imgcreate.live import *
@@ -310,6 +310,28 @@ def main():
print "Launching shell. Exit to continue."
print "----------------------------------"
editor.launch_shell()
+ #...
2014 Feb 27
1
AIX 7.1 Winbind Module Problems
...ogs from 3.6.0 build with make
[root] on [barrow] on [/rehash/samba-3.6.0/source3] {948} make
WAF_MAKE=1 ../buildtools/bin/waf build
/rehash/samba-3.6.0/buildtools/bin/.waf-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Utils.py:89:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5
../buildtools/wafsamba/samba_utils.py:392: DeprecationWarning: the md5
module is deprecated; use hashlib instead
import md5
Waf: Entering directory `/rehash/samba-3.6.0/source3/bin'
[ 8/1242] Generating VERSION
[ 12/1242] Compiling IDL ../librpc/idl/atsvc.i...
2011 Aug 07
1
SQL passdb lookups not working
Hello everyone,
I'm trying to make dovecot do user authentication against a SQL
database. The passwords (managed by Django) are stored as salted SHA1
encoded in hex. I monkey patched Django's password method so that the
password hash is made with <password><salt> (Django does
<salt><password>, the patched method was verified to return same value
as
2015 Jun 30
3
how is the sha fingerprint generated?
% cat ext_rsa.pub| sed -r 's/.*(AAAA[^ ]+).*/\1/' | sha256sum
~/.ssh swlap1
d4bf8b06f2d9d9af7a11583a5367205ed310a84f0dee68d062e2ddca1e85c3ff -
% ssh-keygen -lf ext_rsa.pub
~/.ssh swlap1
8192 SHA256:FgrfxmdjTM/j4wwRa7nVdPSUaJdqHYMJtJ6aciPl9ug swilson at swlap1 (RSA)
Why do those differ and how would i generate the equivalent (mainly
just curious)? I've also tried base64 and a
2009 Nov 26
2
[error] avahi_entry_group_add_service_strlst("AdminNodeFQDN") failed: Invalid host name
...dutils.rb:19:in `require'
from /usr/share/ovirt-server/dutils/dutils.rb:19
from /usr/bin/ovirt-vm2node:6:in `require'
from /usr/bin/ovirt-vm2node:6
/usr/lib64/python2.6/site-packages/mod_python/importer.py:32:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
[Thu Nov 26 11:29:30 2009] [INFO] IPA: get_entry_by_cn 'ipausers'
Anything I can do to fix this?
--
Regards,
Netbulae
Jorick Astrego
2016 Mar 02
2
problem restoring ssl and vlc
....py", line 54,
in <module>
from grabber import urlgrab, urlopen, urlread
File "/usr/lib/python2.6/site-packages/urlgrabber/grabber.py", line 422,
in <module>
import urllib2
File "/usr/lib64/python2.6/urllib2.py", line 93, in <module>
import hashlib
File "/usr/lib64/python2.6/hashlib.py", line 88, in <module>
import _hashlib
ImportError: libssl.so.10: cannot open shared object file: No such file or
directory
decided to try starting vlc from cli;
~]$ vlc
bash: vlc: command not found
presuming that vlc starts from a dif...
2013 May 11
1
Samba git: build error when upgrading
...gin git://git.samba.org/samba.git (fetch)
origin git://git.samba.org/samba.git (push)
$ git pull
$ ./configure ...
$ make clean
WAF_MAKE=1 python ./buildtools/bin/waf build
./buildtools/wafsamba/samba_utils.py:397: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Waf: Entering directory `/home/gerryr/build/samba4/bin'
symlink: samba/__init__.py -> python/samba/__init__.py
/home/gerryr/build/samba4/wscript: error: Traceback (most recent call last):
File "/home/gerryr/build/samba4/buildtools/wafadmin/Util...
2014 Feb 27
0
AIX WINBIND ISSUES
...ogs from 3.6.0 build with make
[root] on [barrow] on [/rehash/samba-3.6.0/source3] {948} make
WAF_MAKE=1 ../buildtools/bin/waf build
*/rehash/samba-3.6.0/buildtools/bin/*.waf-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Utils.py:89:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5
../buildtools/wafsamba/samba_utils.py:392: DeprecationWarning: the md5
module is deprecated; use hashlib instead
import md5
Waf: Entering directory `/rehash/samba-3.6.0/source3/bin'
[ 8/1242] Generating VERSION
[ 12/1242] Compiling IDL ../librpc/idl/atsvc.idl...
2014 Feb 27
0
AIX 7.1 Winbind Module Load Issues
...ogs from 3.6.0 build with make
[root] on [barrow] on [/rehash/samba-3.6.0/source3] {948} make
WAF_MAKE=1 ../buildtools/bin/waf build
/rehash/samba-3.6.0/buildtools/bin/.waf-1.5.19-d825ca58092f19b61518932e7b93eaa3/wafadmin/Utils.py:89:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5
../buildtools/wafsamba/samba_utils.py:392: DeprecationWarning: the md5
module is deprecated; use hashlib instead
import md5
Waf: Entering directory `/rehash/samba-3.6.0/source3/bin'
[ 8/1242] Generating VERSION
[ 12/1242] Compiling IDL ../librpc/idl/atsvc.i...
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
...b/readline -L./lib/readline -L./lib/glob
-L./lib/tilde -L./lib/sh -save-temps -flto -g -flto
-Wno-parentheses -Wno-format-security -o bash shell.o eval.o y.tab.o
general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o
variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o
hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o
test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o
bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o
findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o
-lbuiltins -lglob -lsh -lreadline -lhistory -ltermcap -...
2012 Feb 28
0
fail2ban and httpd
...ent <HOST>[]] (File does not exist|script not found or
unable to stat): .*(\.php|\.asp|\.exe|\.pl)
Test:
[root at web ~]# fail2ban-regex /var/log/httpd/error_log
/etc/fail2ban/filter.d/apache.conf
/usr/share/fail2ban/server/filter.py:430: DeprecationWarning: the md5
module is deprecated; use hashlib instead
import md5
Running tests
=============
Use regex file : /etc/fail2ban/filter.d/apache.conf
Use log file : /var/log/httpd/error_log
Results
=======
Failregex
|- Regular expressions:
| [1] [[]client <HOST>[]] (File does not exist|script not found or
unable to stat): .*(\.php|\...
2019 Jan 28
2
How to generate .bc file using configure && make on Mac OS X?
> On macOS you just omit the '-fuse-ld=gold' and it will work out of the box.
> > ./configure CC=clang RANLIB=llvm-ranlib CFLAGS=-flto
> > LDFLAGS=-Wl\,-plugin-opt=save-temps\ -flto\ -fuse-ld=gold
> > make
No. It doesn't work on Mac OS by just omitting '-fuse-ld=gold'.
$ ../../../extract/bash-5.0/configure CC=clang CXX=clang++
RANLIB=llvm-ranlib