source: EcnlProtoTool/trunk/mrbgems/mruby-digest/README.md@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File size: 1.8 KB
RevLine 
[331]1mruby-digest
2=========
3
4## Features
5
6Message Digest and HMAC classes are available. They are compatible with CRuby's ones.
7
8- Digest::MD5, Digest::RMD160, Digest::SHA1, Digest::SHA256, Digest::SHA384 and
9 Digest::SHA512
10 - Note: some of them are not available if libcrypto.a does not support them on your system.
11- Digest::HMAC
12
13## Install
14 - add conf.gem line to `build_config.rb`
15
16```ruby
17MRuby::Build.new do |conf|
18
19 # ... (snip) ...
20
21 conf.gem :git => 'https://github.com/iij/mruby-digest.git'
22end
23```
24
25## Usage
26```ruby
27Digest::MD5.digest('ruby')
28Digest::MD5.hexdigest('ruby')
29```
30
31## Requirement
32- OpenSSL library (libcrypto.a) on Unix systems
33- Common Crypto library on MacOSX
34
35## License
36
37Copyright (c) 2012 Internet Initiative Japan Inc.
38
39Permission is hereby granted, free of charge, to any person obtaining a
40copy of this software and associated documentation files (the "Software"),
41to deal in the Software without restriction, including without limitation
42the rights to use, copy, modify, merge, publish, distribute, sublicense,
43and/or sell copies of the Software, and to permit persons to whom the
44Software is furnished to do so, subject to the following conditions:
45
46The above copyright notice and this permission notice shall be included in
47all copies or substantial portions of the Software.
48
49THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
54FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
55DEALINGS IN THE SOFTWARE.
56
Note: See TracBrowser for help on using the repository browser.