<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Compile_Argon2_for_Android</id>
	<title>Compile Argon2 for Android - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Compile_Argon2_for_Android"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;action=history"/>
	<updated>2026-06-02T20:37:14Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;diff=3855&amp;oldid=prev</id>
		<title>2023年12月19日 (二) 11:37 Riguz</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;diff=3855&amp;oldid=prev"/>
		<updated>2023-12-19T11:37:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年12月19日 (二) 11:37的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;第56行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第56行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Android]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff:1.41:old-3766:rev-3855:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;diff=3766&amp;oldid=prev</id>
		<title>Riguz：​Riguz移动页面Blog:Compile Argon2 for Android至Compile Argon2 for Android，不留重定向</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;diff=3766&amp;oldid=prev"/>
		<updated>2023-12-19T05:52:34Z</updated>

		<summary type="html">&lt;p&gt;Riguz移动页面&lt;a href=&quot;/index.php?title=Blog:Compile_Argon2_for_Android&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Blog:Compile Argon2 for Android（页面不存在）&quot;&gt;Blog:Compile Argon2 for Android&lt;/a&gt;至&lt;a href=&quot;/Compile_Argon2_for_Android&quot; title=&quot;Compile Argon2 for Android&quot;&gt;Compile Argon2 for Android&lt;/a&gt;，不留重定向&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年12月19日 (二) 05:52的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;diff=2643&amp;oldid=prev</id>
		<title>imported&gt;Riguz：​[Keepass](https://keepass.info/help/kb/kdbx_4.html)中使用了一个[Argon2](https://www.argon2.com/)的算法来存储用户主密码，这个算法被认为是下一代的较为安全的密码散列算法。</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Compile_Argon2_for_Android&amp;diff=2643&amp;oldid=prev"/>
		<updated>2018-08-03T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;[Keepass](https://keepass.info/help/kb/kdbx_4.html)中使用了一个[Argon2](https://www.argon2.com/)的算法来存储用户主密码，这个算法被认为是下一代的较为安全的密码散列算法。&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[https://keepass.info/help/kb/kdbx_4.html Keepass]中使用了一个[https://www.argon2.com/ Argon2]的算法来存储用户主密码，这个算法被认为是下一代的较为安全的密码散列算法。&lt;br /&gt;
我们来看看 Argon2算法：&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
hfli@CNhfli ~/Documents/phc-winner-argon2 (master*) $ echo -n &amp;quot;password&amp;quot; | ./argon2 somehelloworld -t 2 -m 16 -p 4 -l 24&lt;br /&gt;
Type:		Argon2i&lt;br /&gt;
Iterations:	2&lt;br /&gt;
Memory:		65536 KiB&lt;br /&gt;
Parallelism:	4&lt;br /&gt;
Hash:		2748e90a5a301dbcf46067a8784d3e73c7acc8939b4ee02d&lt;br /&gt;
Encoded:	$argon2i$v=19$m=65536,t=2,p=4$c29tZWhlbGxvd29ybGQ$J0jpClowHbz0YGeoeE0+c8esyJObTuAt&lt;br /&gt;
0.126 seconds&lt;br /&gt;
Verification ok&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
这个算法又分为两个版本,Argon2i和Argon2d:&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Argon2d provides the highest resistance against GPU cracking attacks. Argon2i is designed to resist side-channel attacks.&lt;br /&gt;
&lt;br /&gt;
Keepass中选择的是Argon2d&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Only the Argon2d variant of Argon2 is supported (a strong defense against GPU/ASIC cracking attacks is the most important goal, and Argon2d here is better than Argon2i; side-channel timing attacks are basically irrelevant, because KeePass is a local application, not a remote server)&lt;br /&gt;
&lt;br /&gt;
在安卓上编译可以参考如下步骤:&lt;br /&gt;
&lt;br /&gt;
Application.mk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
APP_BUILD_SCRIPT := Android.mk&lt;br /&gt;
APP_STL := gnustl_shared&lt;br /&gt;
APP_ABI := armeabi-v7a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Android.mk&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LOCAL_PATH := $(call my-dir)&lt;br /&gt;
&lt;br /&gt;
include $(CLEAR_VARS)&lt;br /&gt;
&lt;br /&gt;
LOCAL_MODULE := libargon2&lt;br /&gt;
LOCAL_CPPFLAGS += -fexceptions&lt;br /&gt;
&lt;br /&gt;
LOCAL_C_INCLUDES := \&lt;br /&gt;
    $(LOCAL_PATH) \&lt;br /&gt;
    $(LOCAL_PATH)/include \&lt;br /&gt;
&lt;br /&gt;
LOCAL_SRC_FILES := \&lt;br /&gt;
    src/argon2.c \&lt;br /&gt;
    src/core.c \&lt;br /&gt;
    src/blake2/blake2b.c \&lt;br /&gt;
    src/encoding.c \&lt;br /&gt;
    src/ref.c \&lt;br /&gt;
    src/thread.c \&lt;br /&gt;
&lt;br /&gt;
include $(BUILD_SHARED_LIBRARY)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
编译&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Riguz</name></author>
	</entry>
</feed>