ezcrypto 0.6.2 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/CHANGELOG +16 -0
  2. data/lib/ezsig.rb +70 -15
  3. data/rakefile +1 -1
  4. data/test/debug.log +1010 -0
  5. data/test/dsig_test.rb +22 -0
  6. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,19 @@
1
+ 0.7 September 12th, 2006 PKYP services support
2
+
3
+ Marking the release of http://pkyp.org a new no nonsense Public Key directory, this allows you register your public keys and certificates on a public server. If you have web applications with certificates or public keys you can point your users at http://pkyp.org/{key.digest} for more info about a certificate.
4
+
5
+ Register a public key or certificate at PKYP with the new method register_with_pkyp like this:
6
+
7
+ signer=EzCrypto::Signer.generate
8
+ signer.verifier.register_with_pkyp
9
+
10
+ If you have the public key or certificate digest you can fetch the full public key or certificate like this:
11
+
12
+ verifier=EzCrypto::Verifier.from_pkyp "e93e18114cbefaaa89fda908b09df63d3662879a"
13
+ verifier.verify sig, request_text
14
+
15
+ This allows a simpler way of transfering certificates. The idea of including certificates with every request is not really necessary in an online world. For example you could pass the digest in a HTTP header for a REST web services request.
16
+
1
17
  0.6.2 August 15th, 2006 Trust something release
2
18
 
3
19
  Now comes complete with a fairly trusted list of root certs as extracted from Apple's keystore. With the addition of CACerts and GoDaddy SSL Certs (Buy from http://widecert.net). If you feel any important ones are missing let me know.
data/lib/ezsig.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'ezcrypto'
2
+ require 'net/http'
2
3
  =begin rdoc
3
4
 
4
5
  These modules provides a simple ruby like way to create and verify digital signatures.
@@ -134,19 +135,15 @@ module EzCrypto
134
135
  Decodes a PEM encoded Certificate or Public Key and returns a Verifier object.
135
136
  =end
136
137
  def self.decode(encoded)
137
- begin
138
- case encoded
139
- when /-----BEGIN CERTIFICATE-----/
140
- EzCrypto::Certificate.new(OpenSSL::X509::Certificate.new( encoded))
141
- else
142
- begin
143
- EzCrypto::Verifier.new(OpenSSL::PKey::RSA.new( encoded))
144
- rescue
145
- EzCrypto::Verifier.new(OpenSSL::PKey::DSA.new( encoded))
146
- end
138
+ case encoded
139
+ when /-----BEGIN CERTIFICATE-----/
140
+ EzCrypto::Certificate.new(OpenSSL::X509::Certificate.new( encoded))
141
+ else
142
+ begin
143
+ EzCrypto::Verifier.new(OpenSSL::PKey::RSA.new( encoded))
144
+ rescue
145
+ EzCrypto::Verifier.new(OpenSSL::PKey::DSA.new( encoded))
147
146
  end
148
- rescue
149
- puts encoded
150
147
  end
151
148
  end
152
149
 
@@ -158,6 +155,26 @@ module EzCrypto
158
155
  decode(file)
159
156
  end
160
157
 
158
+ =begin rdoc
159
+ Load a certificate or public key from PKYP based on it's hex digest
160
+ =end
161
+ def self.from_pkyp(digest)
162
+ digest=digest.strip.downcase
163
+ if digest=~/[0123456789abcdef]{40}/
164
+ # Net::HTTP.start("localhost", 9000) do |query|
165
+ Net::HTTP.start("pkyp.org", 80) do |query|
166
+ response=query.get "/#{digest}.pem"
167
+ if response.code=="200"
168
+ decode(response.body)
169
+ else
170
+ raise "Error occured (#{response.code}): #{response.body}"
171
+ end
172
+ end
173
+ else
174
+ raise "Invalid digest"
175
+ end
176
+ end
177
+
161
178
  =begin rdoc
162
179
  Decodes all certificates or public keys in a file and returns an array.
163
180
  =end
@@ -223,6 +240,30 @@ module EzCrypto
223
240
  false
224
241
  end
225
242
  end
243
+
244
+ =begin rdoc
245
+ Register the public key or certificate at PKYP
246
+ =end
247
+ def register_with_pkyp
248
+ send_to_pkyp(@pub.to_s)
249
+ end
250
+
251
+ protected
252
+
253
+ def send_to_pkyp(pem)
254
+ # Net::HTTP.start("localhost", 9000) do |query|
255
+ Net::HTTP.start("pkyp.org", 80) do |query|
256
+ output=URI.escape(pem).gsub("+","%2b")
257
+ response=query.post "/register","body="+output
258
+ if response.code=="302"
259
+ response["Location"]=~/([0123456789abcdef]{40}$)/
260
+ $1
261
+ else
262
+ raise "Error occured (#{response.code}): #{response.body}"
263
+ end
264
+ end
265
+ end
266
+
226
267
  end
227
268
 
228
269
  =begin rdoc
@@ -246,6 +287,13 @@ module EzCrypto
246
287
  true
247
288
  end
248
289
 
290
+ =begin rdoc
291
+ Register the certificate at PKYP
292
+ =end
293
+ def register_with_pkyp
294
+ send_to_pkyp(@cert.to_s)
295
+ end
296
+
249
297
  =begin rdoc
250
298
  Returns the SHA1 hex digest of a the DER encoded certificate. This is useful as a unique identifier.
251
299
  =end
@@ -437,8 +485,15 @@ module EzCrypto
437
485
  Create a trust store of normally trusted root certificates as found in a browser. Extracted from Safari.
438
486
  =end
439
487
  def self.default_trusted
488
+ load_from_file(File.dirname(__FILE__) + "/trusted.pem")
489
+ end
490
+ =begin rdoc
491
+ Create a trust store from a list of certificates in a pem file.
492
+ These certificates should just be listed one after each other.
493
+ =end
494
+ def self.load_from_file(file)
440
495
  store=TrustStore.new
441
- EzCrypto::Verifier.load_all_from_file(File.dirname(__FILE__) + "/trusted.pem").each do |cert|
496
+ EzCrypto::Verifier.load_all_from_file(file).each do |cert|
442
497
  store.add cert
443
498
  end
444
499
  store
@@ -458,7 +513,7 @@ module EzCrypto
458
513
  def add(obj)
459
514
  if obj.kind_of?(EzCrypto::Certificate)
460
515
  @store.add_cert obj.cert
461
- elsif obj.kind_of?(OpenSSL::X509::Cert)
516
+ elsif obj.kind_of?(OpenSSL::X509::Certificate)
462
517
  @store.add_cert obj
463
518
  else
464
519
  raise "unsupported object type"
@@ -470,7 +525,7 @@ module EzCrypto
470
525
  def verify(cert)
471
526
  if cert.kind_of?(EzCrypto::Certificate)
472
527
  @store.verify cert.cert
473
- elsif cert.kind_of?(OpenSSL::X509::Cert)
528
+ elsif cert.kind_of?(OpenSSL::X509::Certificate)
474
529
  @store.verify cert
475
530
  else
476
531
  false
data/rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rake/contrib/rubyforgepublisher'
8
8
 
9
9
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
10
10
  PKG_NAME = 'ezcrypto'
11
- PKG_VERSION = '0.6.2' + PKG_BUILD
11
+ PKG_VERSION = '0.7' + PKG_BUILD
12
12
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
13
13
 
14
14
  RELEASE_NAME = "REL #{PKG_VERSION}"
data/test/debug.log CHANGED
@@ -908,3 +908,1013 @@
908
908
  SQL (0.000836) INSERT INTO users (`name`) VALUES(NULL)
909
909
  SQL (0.004459) COMMIT
910
910
  User Load (0.001191) SELECT * FROM users WHERE (users.id = 687) LIMIT 1
911
+ Asset Columns (0.220632) SHOW FIELDS FROM assets
912
+ SQL (0.002368) BEGIN
913
+ SQL (0.154206) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-08-25 15:08:30', x'935804d8bf4895d5770067a3132f5e5e', '2006-08-25 15:08:30')
914
+ SQL (0.000443) COMMIT
915
+ Cap Columns (0.081561) SHOW FIELDS FROM caps
916
+ SQL (0.004149) BEGIN
917
+ SQL (0.009739) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-08-25 15:08:30', NULL, NULL, NULL, 76, '2006-08-25 15:08:30', 'pelle@neubia.com')
918
+ SQL (0.000416) COMMIT
919
+ SQL (0.004513) BEGIN
920
+ Cap Update (0.070576) UPDATE caps SET `created_at` = '2006-08-25 15:08:30', `key_hash` = 'ebf6b4335e22393464e401b584cc004827e4d475', `key` = NULL, `asset_id` = 76, `email` = 'pelle@neubia.com', `shared_key` = x'2818d82a123ff519840b6914704fb9364d5c3150767260bda466c3395f4a8c0c', `updated_at` = '2006-08-25 15:08:30' WHERE id = 105
921
+ SQL (0.000465) COMMIT
922
+ Cap Load (0.021869) SELECT * FROM caps WHERE (caps.`key_hash` = 'ebf6b4335e22393464e401b584cc004827e4d475' ) LIMIT 1
923
+ Asset Load (0.001609) SELECT * FROM assets WHERE (assets.id = 76) LIMIT 1
924
+ AssetRaw Load (0.001495) SELECT * FROM assets WHERE (assets.id = 76) LIMIT 1
925
+ AssetRaw Columns (0.004502) SHOW FIELDS FROM assets
926
+ SQL (0.003558) BEGIN
927
+ SQL (0.004565) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-08-25 15:08:30', NULL, NULL, NULL, 76, '2006-08-25 15:08:30', 'bob@bob.com')
928
+ SQL (0.001273) COMMIT
929
+ SQL (0.000391) BEGIN
930
+ Cap Update (0.001085) UPDATE caps SET `created_at` = '2006-08-25 15:08:30', `key_hash` = '9436fbb1bd366ba8f860a1d71ec2173cc441dd36', `key` = NULL, `asset_id` = 76, `email` = 'bob@bob.com', `shared_key` = x'bacaf3534b8b25eb5b523bc38719a20932e7781cb6bb18a220e9e5677439e918', `updated_at` = '2006-08-25 15:08:30' WHERE id = 106
931
+ SQL (0.001535) COMMIT
932
+ Cap Load (0.002596) SELECT * FROM caps WHERE (caps.`key_hash` = '9436fbb1bd366ba8f860a1d71ec2173cc441dd36' ) LIMIT 1
933
+ Asset Load (0.001484) SELECT * FROM assets WHERE (assets.id = 76) LIMIT 1
934
+ User Columns (0.024339) SHOW FIELDS FROM users
935
+ SQL (0.003574) BEGIN
936
+ SQL (0.047800) INSERT INTO users (`name`) VALUES(NULL)
937
+ SQL (0.000481) COMMIT
938
+ Secret Load (0.049049) SELECT * FROM secrets WHERE (secrets.user_id = 688) 
939
+ Secret Columns (0.005376) SHOW FIELDS FROM secrets
940
+ SQL (0.003272) BEGIN
941
+ SQL (0.018252) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 688, NULL)
942
+ SQL (0.000806) COMMIT
943
+ User Load (0.001224) SELECT * FROM users WHERE (users.id = 688) LIMIT 1
944
+ SQL (0.000462) BEGIN
945
+ Secret Update (0.002027) UPDATE secrets SET `user_id` = 688, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 84
946
+ SQL (0.000496) COMMIT
947
+ Child Load (0.038601) SELECT * FROM children WHERE (children.secret_id = 84) 
948
+ Child Columns (0.005029) SHOW FIELDS FROM children
949
+ SQL (0.003414) BEGIN
950
+ SQL (0.000784) INSERT INTO children (`secret_id`, `email`) VALUES(84, NULL)
951
+ SQL (0.000390) COMMIT
952
+ SQL (0.008146) BEGIN
953
+ Secret Load (0.008197) SELECT * FROM secrets WHERE (secrets.id = 84) LIMIT 1
954
+ User Load (0.003219) SELECT * FROM users WHERE (users.id = 688) LIMIT 1
955
+ Child Update (0.000942) UPDATE children SET `secret_id` = 84, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 69
956
+ SQL (0.002400) COMMIT
957
+ SQL (0.000679) BEGIN
958
+ SQL (0.000789) INSERT INTO users (`name`) VALUES('bob')
959
+ SQL (0.000649) COMMIT
960
+ SQL (0.001035) BEGIN
961
+ SQL (0.000714) INSERT INTO users (`name`) VALUES(NULL)
962
+ SQL (0.000375) COMMIT
963
+ SQL (0.000406) BEGIN
964
+ SQL (0.003236) INSERT INTO users (`name`) VALUES(NULL)
965
+ SQL (0.000587) COMMIT
966
+ SQL (0.001005) BEGIN
967
+ SQL (0.000727) INSERT INTO users (`name`) VALUES(NULL)
968
+ SQL (0.012099) COMMIT
969
+ SQL (0.000679) BEGIN
970
+ SQL (0.000875) INSERT INTO users (`name`) VALUES(NULL)
971
+ SQL (0.000403) COMMIT
972
+ SQL (0.000431) BEGIN
973
+ SQL (0.000702) INSERT INTO users (`name`) VALUES(NULL)
974
+ SQL (0.004185) COMMIT
975
+ User Load (0.007385) SELECT * FROM users WHERE (users.id = 694) LIMIT 1
976
+ SQL (0.000884) BEGIN
977
+ SQL (0.000845) INSERT INTO users (`name`) VALUES(NULL)
978
+ SQL (0.000417) COMMIT
979
+ SQL (0.000364) BEGIN
980
+ SQL (0.005055) INSERT INTO users (`name`) VALUES(NULL)
981
+ SQL (0.000416) COMMIT
982
+ User Load (0.001251) SELECT * FROM users WHERE (users.id = 696) LIMIT 1
983
+ EncUser Columns (0.009207) SHOW FIELDS FROM users
984
+ SQL (0.003151) BEGIN
985
+ SQL (0.001181) INSERT INTO users (`name`) VALUES(NULL)
986
+ SQL (0.068101) COMMIT
987
+ SQL (0.000461) BEGIN
988
+ SQL (0.005162) INSERT INTO users (`name`) VALUES(NULL)
989
+ SQL (0.000427) COMMIT
990
+ SQL (0.004026) BEGIN
991
+ SQL (0.000763) INSERT INTO users (`name`) VALUES(NULL)
992
+ SQL (0.000373) COMMIT
993
+ SQL (0.000503) BEGIN
994
+ SQL (0.000842) INSERT INTO users (`name`) VALUES(NULL)
995
+ SQL (0.001083) COMMIT
996
+ SQL (0.000486) BEGIN
997
+ SQL (0.001125) INSERT INTO users (`name`) VALUES(NULL)
998
+ SQL (0.000371) COMMIT
999
+ SQL (0.000490) BEGIN
1000
+ EncUser Update (0.000942) UPDATE users SET `name` = ']%]�$7���gs�.�' WHERE id = 701
1001
+ SQL (0.000649) COMMIT
1002
+ EncUser Load (0.001235) SELECT * FROM users WHERE (users.id = 701) LIMIT 1
1003
+ RawUser Load (0.001714) SELECT * FROM users WHERE (users.id = 701) LIMIT 1
1004
+ RawUser Columns (0.019904) SHOW FIELDS FROM users
1005
+ SQL (0.004796) BEGIN
1006
+ SQL (0.001283) INSERT INTO users (`name`) VALUES(NULL)
1007
+ SQL (0.000393) COMMIT
1008
+ SQL (0.001189) BEGIN
1009
+ SQL (0.001345) INSERT INTO users (`name`) VALUES(NULL)
1010
+ SQL (0.000779) COMMIT
1011
+ User Load (0.008308) SELECT * FROM users WHERE (users.id = 703) LIMIT 1
1012
+ Asset Columns (0.010434) SHOW FIELDS FROM assets
1013
+ SQL (0.000537) BEGIN
1014
+ SQL (0.000840) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-08-25 15:10:08', x'd5e963411cccdbac0e7c0ce7b865de48', '2006-08-25 15:10:08')
1015
+ SQL (0.000455) COMMIT
1016
+ Cap Columns (0.006201) SHOW FIELDS FROM caps
1017
+ SQL (0.003635) BEGIN
1018
+ SQL (0.001430) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-08-25 15:10:08', NULL, NULL, NULL, 77, '2006-08-25 15:10:08', 'pelle@neubia.com')
1019
+ SQL (0.000396) COMMIT
1020
+ SQL (0.000374) BEGIN
1021
+ Cap Update (0.001031) UPDATE caps SET `created_at` = '2006-08-25 15:10:08', `key_hash` = '636abd55e422b0468890331927193cbb9974a2af', `key` = NULL, `asset_id` = 77, `email` = 'pelle@neubia.com', `shared_key` = x'b3085257bae6ce658ec6794fd45af1887f1f3fe36bb00088e561443d82ff024b', `updated_at` = '2006-08-25 15:10:08' WHERE id = 107
1022
+ SQL (0.000490) COMMIT
1023
+ Cap Load (0.002501) SELECT * FROM caps WHERE (caps.`key_hash` = '636abd55e422b0468890331927193cbb9974a2af' ) LIMIT 1
1024
+ Asset Load (0.003351) SELECT * FROM assets WHERE (assets.id = 77) LIMIT 1
1025
+ AssetRaw Load (0.001805) SELECT * FROM assets WHERE (assets.id = 77) LIMIT 1
1026
+ AssetRaw Columns (0.005972) SHOW FIELDS FROM assets
1027
+ SQL (0.004547) BEGIN
1028
+ SQL (0.000893) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-08-25 15:10:08', NULL, NULL, NULL, 77, '2006-08-25 15:10:08', 'bob@bob.com')
1029
+ SQL (0.000433) COMMIT
1030
+ SQL (0.000366) BEGIN
1031
+ Cap Update (0.001065) UPDATE caps SET `created_at` = '2006-08-25 15:10:08', `key_hash` = '0f681d65c3c522df94f3449b5ce4832c3448084a', `key` = NULL, `asset_id` = 77, `email` = 'bob@bob.com', `shared_key` = x'6e8921ddde4fd46a0018341c85b7cf774c15754aa3a7686424bb8be8f49f4e2f', `updated_at` = '2006-08-25 15:10:08' WHERE id = 108
1032
+ SQL (0.000426) COMMIT
1033
+ Cap Load (0.002653) SELECT * FROM caps WHERE (caps.`key_hash` = '0f681d65c3c522df94f3449b5ce4832c3448084a' ) LIMIT 1
1034
+ Asset Load (0.064246) SELECT * FROM assets WHERE (assets.id = 77) LIMIT 1
1035
+ User Columns (0.004891) SHOW FIELDS FROM users
1036
+ SQL (0.003927) BEGIN
1037
+ SQL (0.000749) INSERT INTO users (`name`) VALUES(NULL)
1038
+ SQL (0.000873) COMMIT
1039
+ Secret Load (0.001717) SELECT * FROM secrets WHERE (secrets.user_id = 704) 
1040
+ Secret Columns (0.011501) SHOW FIELDS FROM secrets
1041
+ SQL (0.004122) BEGIN
1042
+ SQL (0.002059) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 704, NULL)
1043
+ SQL (0.000678) COMMIT
1044
+ User Load (0.002078) SELECT * FROM users WHERE (users.id = 704) LIMIT 1
1045
+ SQL (0.000471) BEGIN
1046
+ Secret Update (0.000993) UPDATE secrets SET `user_id` = 704, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 85
1047
+ SQL (0.000402) COMMIT
1048
+ Child Load (0.001406) SELECT * FROM children WHERE (children.secret_id = 85) 
1049
+ Child Columns (0.004351) SHOW FIELDS FROM children
1050
+ SQL (0.010366) BEGIN
1051
+ SQL (0.000865) INSERT INTO children (`secret_id`, `email`) VALUES(85, NULL)
1052
+ SQL (0.000367) COMMIT
1053
+ SQL (0.000333) BEGIN
1054
+ Secret Load (0.002465) SELECT * FROM secrets WHERE (secrets.id = 85) LIMIT 1
1055
+ User Load (0.001392) SELECT * FROM users WHERE (users.id = 704) LIMIT 1
1056
+ Child Update (0.001526) UPDATE children SET `secret_id` = 85, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 70
1057
+ SQL (0.000543) COMMIT
1058
+ SQL (0.000324) BEGIN
1059
+ SQL (0.001516) INSERT INTO users (`name`) VALUES('bob')
1060
+ SQL (0.000562) COMMIT
1061
+ SQL (0.000440) BEGIN
1062
+ SQL (0.000718) INSERT INTO users (`name`) VALUES(NULL)
1063
+ SQL (0.000377) COMMIT
1064
+ SQL (0.003512) BEGIN
1065
+ SQL (0.014890) INSERT INTO users (`name`) VALUES(NULL)
1066
+ SQL (0.000454) COMMIT
1067
+ SQL (0.001460) BEGIN
1068
+ SQL (0.004650) INSERT INTO users (`name`) VALUES(NULL)
1069
+ SQL (0.000409) COMMIT
1070
+ SQL (0.000848) BEGIN
1071
+ SQL (0.001152) INSERT INTO users (`name`) VALUES(NULL)
1072
+ SQL (0.000405) COMMIT
1073
+ SQL (0.000491) BEGIN
1074
+ SQL (0.004110) INSERT INTO users (`name`) VALUES(NULL)
1075
+ SQL (0.000467) COMMIT
1076
+ User Load (0.001211) SELECT * FROM users WHERE (users.id = 710) LIMIT 1
1077
+ SQL (0.000789) BEGIN
1078
+ SQL (0.000953) INSERT INTO users (`name`) VALUES(NULL)
1079
+ SQL (0.000381) COMMIT
1080
+ SQL (0.000406) BEGIN
1081
+ SQL (0.000978) INSERT INTO users (`name`) VALUES(NULL)
1082
+ SQL (0.000722) COMMIT
1083
+ User Load (0.001211) SELECT * FROM users WHERE (users.id = 712) LIMIT 1
1084
+ EncUser Columns (0.008078) SHOW FIELDS FROM users
1085
+ SQL (0.003272) BEGIN
1086
+ SQL (0.000773) INSERT INTO users (`name`) VALUES(NULL)
1087
+ SQL (0.000367) COMMIT
1088
+ SQL (0.000479) BEGIN
1089
+ SQL (0.000731) INSERT INTO users (`name`) VALUES(NULL)
1090
+ SQL (0.000360) COMMIT
1091
+ SQL (0.000479) BEGIN
1092
+ SQL (0.000716) INSERT INTO users (`name`) VALUES(NULL)
1093
+ SQL (0.000386) COMMIT
1094
+ SQL (0.001671) BEGIN
1095
+ SQL (0.007187) INSERT INTO users (`name`) VALUES(NULL)
1096
+ SQL (0.000504) COMMIT
1097
+ SQL (0.000541) BEGIN
1098
+ SQL (0.000963) INSERT INTO users (`name`) VALUES(NULL)
1099
+ SQL (0.000373) COMMIT
1100
+ SQL (0.000394) BEGIN
1101
+ EncUser Update (0.001943) UPDATE users SET `name` = '��\\�o����v�U-' WHERE id = 717
1102
+ SQL (0.000418) COMMIT
1103
+ EncUser Load (0.001651) SELECT * FROM users WHERE (users.id = 717) LIMIT 1
1104
+ RawUser Load (0.001306) SELECT * FROM users WHERE (users.id = 717) LIMIT 1
1105
+ RawUser Columns (0.005437) SHOW FIELDS FROM users
1106
+ SQL (0.003687) BEGIN
1107
+ SQL (0.000784) INSERT INTO users (`name`) VALUES(NULL)
1108
+ SQL (0.000367) COMMIT
1109
+ SQL (0.004874) BEGIN
1110
+ SQL (0.000820) INSERT INTO users (`name`) VALUES(NULL)
1111
+ SQL (0.000427) COMMIT
1112
+ User Load (0.001473) SELECT * FROM users WHERE (users.id = 719) LIMIT 1
1113
+ Asset Columns (0.092498) SHOW FIELDS FROM assets
1114
+ SQL (0.004386) BEGIN
1115
+ SQL (0.111616) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:07:23', x'ee9d7632247bd9c5605664883d3f788f', '2006-09-12 11:07:23')
1116
+ SQL (0.000497) COMMIT
1117
+ Cap Columns (0.041898) SHOW FIELDS FROM caps
1118
+ SQL (0.007554) BEGIN
1119
+ SQL (0.008579) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:07:24', NULL, NULL, NULL, 78, '2006-09-12 11:07:24', 'pelle@neubia.com')
1120
+ SQL (0.000438) COMMIT
1121
+ SQL (0.000436) BEGIN
1122
+ Cap Update (0.041774) UPDATE caps SET `created_at` = '2006-09-12 11:07:24', `key_hash` = 'f9c9c175387617a5ba135a60383639a87d34d9d4', `key` = NULL, `asset_id` = 78, `email` = 'pelle@neubia.com', `shared_key` = x'de87fe8308e9825fe8744d3e20ac4fafa98d4b617e522392bd915dab9d5e6407', `updated_at` = '2006-09-12 11:07:24' WHERE id = 109
1123
+ SQL (0.000469) COMMIT
1124
+ Cap Load (0.046380) SELECT * FROM caps WHERE (caps.`key_hash` = 'f9c9c175387617a5ba135a60383639a87d34d9d4' ) LIMIT 1
1125
+ Asset Load (0.001595) SELECT * FROM assets WHERE (assets.id = 78) LIMIT 1
1126
+ AssetRaw Load (0.001577) SELECT * FROM assets WHERE (assets.id = 78) LIMIT 1
1127
+ AssetRaw Columns (0.008595) SHOW FIELDS FROM assets
1128
+ SQL (0.009099) BEGIN
1129
+ SQL (0.000880) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:07:24', NULL, NULL, NULL, 78, '2006-09-12 11:07:24', 'bob@bob.com')
1130
+ SQL (0.000382) COMMIT
1131
+ SQL (0.000358) BEGIN
1132
+ Cap Update (0.005039) UPDATE caps SET `created_at` = '2006-09-12 11:07:24', `key_hash` = '8ec831b0dfa57a04a6f6ded31508d6cbe86955a6', `key` = NULL, `asset_id` = 78, `email` = 'bob@bob.com', `shared_key` = x'4c4da300fa286cb8f62c559122b78249dfdcace591fc5cd6f120163e9bfe11f3', `updated_at` = '2006-09-12 11:07:24' WHERE id = 110
1133
+ SQL (0.000477) COMMIT
1134
+ Cap Load (0.002788) SELECT * FROM caps WHERE (caps.`key_hash` = '8ec831b0dfa57a04a6f6ded31508d6cbe86955a6' ) LIMIT 1
1135
+ Asset Load (0.001928) SELECT * FROM assets WHERE (assets.id = 78) LIMIT 1
1136
+ User Columns (0.045421) SHOW FIELDS FROM users
1137
+ SQL (0.006991) BEGIN
1138
+ SQL (0.033481) INSERT INTO users (`name`) VALUES(NULL)
1139
+ SQL (0.000443) COMMIT
1140
+ Secret Load (0.015270) SELECT * FROM secrets WHERE (secrets.user_id = 720) 
1141
+ Secret Columns (0.035114) SHOW FIELDS FROM secrets
1142
+ SQL (0.007472) BEGIN
1143
+ SQL (0.000870) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 720, NULL)
1144
+ SQL (0.000418) COMMIT
1145
+ User Load (0.001252) SELECT * FROM users WHERE (users.id = 720) LIMIT 1
1146
+ SQL (0.000621) BEGIN
1147
+ Secret Update (0.000967) UPDATE secrets SET `user_id` = 720, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 86
1148
+ SQL (0.000418) COMMIT
1149
+ Child Load (0.037554) SELECT * FROM children WHERE (children.secret_id = 86) 
1150
+ Child Columns (0.008777) SHOW FIELDS FROM children
1151
+ SQL (0.007567) BEGIN
1152
+ SQL (0.001096) INSERT INTO children (`secret_id`, `email`) VALUES(86, NULL)
1153
+ SQL (0.000378) COMMIT
1154
+ SQL (0.000324) BEGIN
1155
+ Secret Load (0.001669) SELECT * FROM secrets WHERE (secrets.id = 86) LIMIT 1
1156
+ User Load (0.001790) SELECT * FROM users WHERE (users.id = 720) LIMIT 1
1157
+ Child Update (0.001387) UPDATE children SET `secret_id` = 86, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 71
1158
+ SQL (0.000423) COMMIT
1159
+ SQL (0.000356) BEGIN
1160
+ SQL (0.000714) INSERT INTO users (`name`) VALUES('bob')
1161
+ SQL (0.000387) COMMIT
1162
+ SQL (0.001859) BEGIN
1163
+ SQL (0.001127) INSERT INTO users (`name`) VALUES(NULL)
1164
+ SQL (0.000417) COMMIT
1165
+ SQL (0.000446) BEGIN
1166
+ SQL (0.002966) INSERT INTO users (`name`) VALUES(NULL)
1167
+ SQL (0.093582) COMMIT
1168
+ SQL (0.004028) BEGIN
1169
+ SQL (0.000765) INSERT INTO users (`name`) VALUES(NULL)
1170
+ SQL (0.000388) COMMIT
1171
+ SQL (0.000945) BEGIN
1172
+ SQL (0.000879) INSERT INTO users (`name`) VALUES(NULL)
1173
+ SQL (0.000401) COMMIT
1174
+ SQL (0.000442) BEGIN
1175
+ SQL (0.001041) INSERT INTO users (`name`) VALUES(NULL)
1176
+ SQL (0.000507) COMMIT
1177
+ User Load (0.001855) SELECT * FROM users WHERE (users.id = 726) LIMIT 1
1178
+ SQL (0.000488) BEGIN
1179
+ SQL (0.001085) INSERT INTO users (`name`) VALUES(NULL)
1180
+ SQL (0.000568) COMMIT
1181
+ SQL (0.000411) BEGIN
1182
+ SQL (0.001244) INSERT INTO users (`name`) VALUES(NULL)
1183
+ SQL (0.000405) COMMIT
1184
+ User Load (0.001145) SELECT * FROM users WHERE (users.id = 728) LIMIT 1
1185
+ EncUser Columns (0.041929) SHOW FIELDS FROM users
1186
+ SQL (0.007475) BEGIN
1187
+ SQL (0.000813) INSERT INTO users (`name`) VALUES(NULL)
1188
+ SQL (0.000362) COMMIT
1189
+ SQL (0.000432) BEGIN
1190
+ SQL (0.000737) INSERT INTO users (`name`) VALUES(NULL)
1191
+ SQL (0.000556) COMMIT
1192
+ SQL (0.000454) BEGIN
1193
+ SQL (0.000706) INSERT INTO users (`name`) VALUES(NULL)
1194
+ SQL (0.000391) COMMIT
1195
+ SQL (0.000444) BEGIN
1196
+ SQL (0.000691) INSERT INTO users (`name`) VALUES(NULL)
1197
+ SQL (0.000356) COMMIT
1198
+ SQL (0.000427) BEGIN
1199
+ SQL (0.000678) INSERT INTO users (`name`) VALUES(NULL)
1200
+ SQL (0.000503) COMMIT
1201
+ SQL (0.000398) BEGIN
1202
+ EncUser Update (0.000855) UPDATE users SET `name` = '�I�~h/G,��h�����' WHERE id = 733
1203
+ SQL (0.000396) COMMIT
1204
+ EncUser Load (0.001556) SELECT * FROM users WHERE (users.id = 733) LIMIT 1
1205
+ RawUser Load (0.001301) SELECT * FROM users WHERE (users.id = 733) LIMIT 1
1206
+ RawUser Columns (0.011072) SHOW FIELDS FROM users
1207
+ SQL (0.010528) BEGIN
1208
+ SQL (0.002632) INSERT INTO users (`name`) VALUES(NULL)
1209
+ SQL (0.000433) COMMIT
1210
+ SQL (0.000377) BEGIN
1211
+ SQL (0.000680) INSERT INTO users (`name`) VALUES(NULL)
1212
+ SQL (0.000371) COMMIT
1213
+ User Load (0.001486) SELECT * FROM users WHERE (users.id = 735) LIMIT 1
1214
+ Asset Columns (0.014676) SHOW FIELDS FROM assets
1215
+ SQL (0.009616) BEGIN
1216
+ SQL (0.000840) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:13:48', x'1dee9e3d7c80772a2ff12cd1b8ca86ce', '2006-09-12 11:13:48')
1217
+ SQL (0.001074) COMMIT
1218
+ Cap Columns (0.008768) SHOW FIELDS FROM caps
1219
+ SQL (0.007594) BEGIN
1220
+ SQL (0.000888) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:13:48', NULL, NULL, NULL, 79, '2006-09-12 11:13:48', 'pelle@neubia.com')
1221
+ SQL (0.000394) COMMIT
1222
+ SQL (0.000404) BEGIN
1223
+ Cap Update (0.001306) UPDATE caps SET `created_at` = '2006-09-12 11:13:48', `key_hash` = '547c64a24da10329b7618ff9a08ecaf66bacc8d4', `key` = NULL, `asset_id` = 79, `email` = 'pelle@neubia.com', `shared_key` = x'b02d2139499d74b0d3539fc85064714c519a5486c6b0c6074ac07ba9c0ae2874', `updated_at` = '2006-09-12 11:13:48' WHERE id = 111
1224
+ SQL (0.000755) COMMIT
1225
+ Cap Load (0.002324) SELECT * FROM caps WHERE (caps.`key_hash` = '547c64a24da10329b7618ff9a08ecaf66bacc8d4' ) LIMIT 1
1226
+ Asset Load (0.001568) SELECT * FROM assets WHERE (assets.id = 79) LIMIT 1
1227
+ AssetRaw Load (0.001546) SELECT * FROM assets WHERE (assets.id = 79) LIMIT 1
1228
+ AssetRaw Columns (0.008445) SHOW FIELDS FROM assets
1229
+ SQL (0.008306) BEGIN
1230
+ SQL (0.000912) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:13:48', NULL, NULL, NULL, 79, '2006-09-12 11:13:48', 'bob@bob.com')
1231
+ SQL (0.001769) COMMIT
1232
+ SQL (0.000448) BEGIN
1233
+ Cap Update (0.001006) UPDATE caps SET `created_at` = '2006-09-12 11:13:48', `key_hash` = '7e000cc4f3a23bde46bcb51bffa215fee4b2a39e', `key` = NULL, `asset_id` = 79, `email` = 'bob@bob.com', `shared_key` = x'19cf3f0a75c68aee17cd479f150eaf51de18257d7935f49cc0db3f0fca755f7e', `updated_at` = '2006-09-12 11:13:48' WHERE id = 112
1234
+ SQL (0.000411) COMMIT
1235
+ Cap Load (0.003361) SELECT * FROM caps WHERE (caps.`key_hash` = '7e000cc4f3a23bde46bcb51bffa215fee4b2a39e' ) LIMIT 1
1236
+ Asset Load (0.001568) SELECT * FROM assets WHERE (assets.id = 79) LIMIT 1
1237
+ User Columns (0.007577) SHOW FIELDS FROM users
1238
+ SQL (0.007349) BEGIN
1239
+ SQL (0.000763) INSERT INTO users (`name`) VALUES(NULL)
1240
+ SQL (0.005933) COMMIT
1241
+ Secret Load (0.002302) SELECT * FROM secrets WHERE (secrets.user_id = 736) 
1242
+ Secret Columns (0.019924) SHOW FIELDS FROM secrets
1243
+ SQL (0.009137) BEGIN
1244
+ SQL (0.000811) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 736, NULL)
1245
+ SQL (0.000469) COMMIT
1246
+ User Load (0.001775) SELECT * FROM users WHERE (users.id = 736) LIMIT 1
1247
+ SQL (0.000485) BEGIN
1248
+ Secret Update (0.001004) UPDATE secrets SET `user_id` = 736, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 87
1249
+ SQL (0.000435) COMMIT
1250
+ Child Load (0.001574) SELECT * FROM children WHERE (children.secret_id = 87) 
1251
+ Child Columns (0.008741) SHOW FIELDS FROM children
1252
+ SQL (0.007625) BEGIN
1253
+ SQL (0.000784) INSERT INTO children (`secret_id`, `email`) VALUES(87, NULL)
1254
+ SQL (0.000784) COMMIT
1255
+ SQL (0.000367) BEGIN
1256
+ Secret Load (0.002080) SELECT * FROM secrets WHERE (secrets.id = 87) LIMIT 1
1257
+ User Load (0.001462) SELECT * FROM users WHERE (users.id = 736) LIMIT 1
1258
+ Child Update (0.000978) UPDATE children SET `secret_id` = 87, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 72
1259
+ SQL (0.000420) COMMIT
1260
+ SQL (0.000324) BEGIN
1261
+ SQL (0.000733) INSERT INTO users (`name`) VALUES('bob')
1262
+ SQL (0.000419) COMMIT
1263
+ SQL (0.000610) BEGIN
1264
+ SQL (0.000794) INSERT INTO users (`name`) VALUES(NULL)
1265
+ SQL (0.000416) COMMIT
1266
+ SQL (0.000498) BEGIN
1267
+ SQL (0.001321) INSERT INTO users (`name`) VALUES(NULL)
1268
+ SQL (0.000503) COMMIT
1269
+ SQL (0.000765) BEGIN
1270
+ SQL (0.004826) INSERT INTO users (`name`) VALUES(NULL)
1271
+ SQL (0.000473) COMMIT
1272
+ SQL (0.000489) BEGIN
1273
+ SQL (0.000713) INSERT INTO users (`name`) VALUES(NULL)
1274
+ SQL (0.000519) COMMIT
1275
+ SQL (0.000436) BEGIN
1276
+ SQL (0.008080) INSERT INTO users (`name`) VALUES(NULL)
1277
+ SQL (0.000481) COMMIT
1278
+ User Load (0.001224) SELECT * FROM users WHERE (users.id = 742) LIMIT 1
1279
+ SQL (0.001137) BEGIN
1280
+ SQL (0.000820) INSERT INTO users (`name`) VALUES(NULL)
1281
+ SQL (0.000520) COMMIT
1282
+ SQL (0.000471) BEGIN
1283
+ SQL (0.000740) INSERT INTO users (`name`) VALUES(NULL)
1284
+ SQL (0.000397) COMMIT
1285
+ User Load (0.001401) SELECT * FROM users WHERE (users.id = 744) LIMIT 1
1286
+ EncUser Columns (0.016402) SHOW FIELDS FROM users
1287
+ SQL (0.008280) BEGIN
1288
+ SQL (0.002221) INSERT INTO users (`name`) VALUES(NULL)
1289
+ SQL (0.000707) COMMIT
1290
+ SQL (0.000451) BEGIN
1291
+ SQL (0.000689) INSERT INTO users (`name`) VALUES(NULL)
1292
+ SQL (0.000364) COMMIT
1293
+ SQL (0.000506) BEGIN
1294
+ SQL (0.001137) INSERT INTO users (`name`) VALUES(NULL)
1295
+ SQL (0.000412) COMMIT
1296
+ SQL (0.000750) BEGIN
1297
+ SQL (0.000728) INSERT INTO users (`name`) VALUES(NULL)
1298
+ SQL (0.000369) COMMIT
1299
+ SQL (0.002982) BEGIN
1300
+ SQL (0.000803) INSERT INTO users (`name`) VALUES(NULL)
1301
+ SQL (0.000380) COMMIT
1302
+ SQL (0.000441) BEGIN
1303
+ EncUser Update (0.000958) UPDATE users SET `name` = '4S��� [��ܻ�%' WHERE id = 749
1304
+ SQL (0.002113) COMMIT
1305
+ EncUser Load (0.001305) SELECT * FROM users WHERE (users.id = 749) LIMIT 1
1306
+ RawUser Load (0.001229) SELECT * FROM users WHERE (users.id = 749) LIMIT 1
1307
+ RawUser Columns (0.008526) SHOW FIELDS FROM users
1308
+ SQL (0.014360) BEGIN
1309
+ SQL (0.001472) INSERT INTO users (`name`) VALUES(NULL)
1310
+ SQL (0.000397) COMMIT
1311
+ SQL (0.000426) BEGIN
1312
+ SQL (0.000694) INSERT INTO users (`name`) VALUES(NULL)
1313
+ SQL (0.002246) COMMIT
1314
+ User Load (0.001256) SELECT * FROM users WHERE (users.id = 751) LIMIT 1
1315
+ Asset Columns (0.010499) SHOW FIELDS FROM assets
1316
+ SQL (0.096088) BEGIN
1317
+ SQL (0.000854) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:24:29', x'f3259941444dbc896199bec391c57d62', '2006-09-12 11:24:29')
1318
+ SQL (0.000410) COMMIT
1319
+ Cap Columns (0.009659) SHOW FIELDS FROM caps
1320
+ SQL (0.007522) BEGIN
1321
+ SQL (0.001054) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:24:29', NULL, NULL, NULL, 80, '2006-09-12 11:24:29', 'pelle@neubia.com')
1322
+ SQL (0.000483) COMMIT
1323
+ SQL (0.000410) BEGIN
1324
+ Cap Update (0.001018) UPDATE caps SET `created_at` = '2006-09-12 11:24:29', `key_hash` = '4d49ef4fc119276549e02a10bc5fec8a3c30d316', `key` = NULL, `asset_id` = 80, `email` = 'pelle@neubia.com', `shared_key` = x'5483ae51eff818ba2b79612e8a50a3704db832ef68cbcd03cc6c1658a0aaa311', `updated_at` = '2006-09-12 11:24:29' WHERE id = 113
1325
+ SQL (0.000413) COMMIT
1326
+ Cap Load (0.002625) SELECT * FROM caps WHERE (caps.`key_hash` = '4d49ef4fc119276549e02a10bc5fec8a3c30d316' ) LIMIT 1
1327
+ Asset Load (0.001986) SELECT * FROM assets WHERE (assets.id = 80) LIMIT 1
1328
+ AssetRaw Load (0.001723) SELECT * FROM assets WHERE (assets.id = 80) LIMIT 1
1329
+ AssetRaw Columns (0.008243) SHOW FIELDS FROM assets
1330
+ SQL (0.007670) BEGIN
1331
+ SQL (0.000872) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:24:29', NULL, NULL, NULL, 80, '2006-09-12 11:24:29', 'bob@bob.com')
1332
+ SQL (0.000371) COMMIT
1333
+ SQL (0.000399) BEGIN
1334
+ Cap Update (0.000990) UPDATE caps SET `created_at` = '2006-09-12 11:24:29', `key_hash` = '3eb19a622091729ca311fd992f32a36fb1cfc1e0', `key` = NULL, `asset_id` = 80, `email` = 'bob@bob.com', `shared_key` = x'6262c1c4cdd548a4342032ae0107f5f084af8806f5e5ec1a0c4e9a005a54c872', `updated_at` = '2006-09-12 11:24:29' WHERE id = 114
1335
+ SQL (0.000394) COMMIT
1336
+ Cap Load (0.004248) SELECT * FROM caps WHERE (caps.`key_hash` = '3eb19a622091729ca311fd992f32a36fb1cfc1e0' ) LIMIT 1
1337
+ Asset Load (0.001974) SELECT * FROM assets WHERE (assets.id = 80) LIMIT 1
1338
+ User Columns (0.007655) SHOW FIELDS FROM users
1339
+ SQL (0.007069) BEGIN
1340
+ SQL (0.000803) INSERT INTO users (`name`) VALUES(NULL)
1341
+ SQL (0.004225) COMMIT
1342
+ Secret Load (0.001900) SELECT * FROM secrets WHERE (secrets.user_id = 752) 
1343
+ Secret Columns (0.015470) SHOW FIELDS FROM secrets
1344
+ SQL (0.010039) BEGIN
1345
+ SQL (0.000755) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 752, NULL)
1346
+ SQL (0.000410) COMMIT
1347
+ User Load (0.001210) SELECT * FROM users WHERE (users.id = 752) LIMIT 1
1348
+ SQL (0.000510) BEGIN
1349
+ Secret Update (0.000941) UPDATE secrets SET `user_id` = 752, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 88
1350
+ SQL (0.000418) COMMIT
1351
+ Child Load (0.001916) SELECT * FROM children WHERE (children.secret_id = 88) 
1352
+ Child Columns (0.008331) SHOW FIELDS FROM children
1353
+ SQL (0.008983) BEGIN
1354
+ SQL (0.000785) INSERT INTO children (`secret_id`, `email`) VALUES(88, NULL)
1355
+ SQL (0.000344) COMMIT
1356
+ SQL (0.000355) BEGIN
1357
+ Secret Load (0.001556) SELECT * FROM secrets WHERE (secrets.id = 88) LIMIT 1
1358
+ User Load (0.001768) SELECT * FROM users WHERE (users.id = 752) LIMIT 1
1359
+ Child Update (0.001261) UPDATE children SET `secret_id` = 88, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 73
1360
+ SQL (0.000415) COMMIT
1361
+ SQL (0.000804) BEGIN
1362
+ SQL (0.000763) INSERT INTO users (`name`) VALUES('bob')
1363
+ SQL (0.000406) COMMIT
1364
+ SQL (0.000538) BEGIN
1365
+ SQL (0.001214) INSERT INTO users (`name`) VALUES(NULL)
1366
+ SQL (0.000406) COMMIT
1367
+ SQL (0.000574) BEGIN
1368
+ SQL (0.000714) INSERT INTO users (`name`) VALUES(NULL)
1369
+ SQL (0.000458) COMMIT
1370
+ SQL (0.000399) BEGIN
1371
+ SQL (0.000749) INSERT INTO users (`name`) VALUES(NULL)
1372
+ SQL (0.000375) COMMIT
1373
+ SQL (0.000509) BEGIN
1374
+ SQL (0.000708) INSERT INTO users (`name`) VALUES(NULL)
1375
+ SQL (0.000370) COMMIT
1376
+ SQL (0.000720) BEGIN
1377
+ SQL (0.000793) INSERT INTO users (`name`) VALUES(NULL)
1378
+ SQL (0.000442) COMMIT
1379
+ User Load (0.001190) SELECT * FROM users WHERE (users.id = 758) LIMIT 1
1380
+ SQL (0.000473) BEGIN
1381
+ SQL (0.000679) INSERT INTO users (`name`) VALUES(NULL)
1382
+ SQL (0.000388) COMMIT
1383
+ SQL (0.000367) BEGIN
1384
+ SQL (0.001023) INSERT INTO users (`name`) VALUES(NULL)
1385
+ SQL (0.000386) COMMIT
1386
+ User Load (0.001128) SELECT * FROM users WHERE (users.id = 760) LIMIT 1
1387
+ EncUser Columns (0.015975) SHOW FIELDS FROM users
1388
+ SQL (0.007594) BEGIN
1389
+ SQL (0.000745) INSERT INTO users (`name`) VALUES(NULL)
1390
+ SQL (0.000367) COMMIT
1391
+ SQL (0.000445) BEGIN
1392
+ SQL (0.000676) INSERT INTO users (`name`) VALUES(NULL)
1393
+ SQL (0.000737) COMMIT
1394
+ SQL (0.000753) BEGIN
1395
+ SQL (0.002869) INSERT INTO users (`name`) VALUES(NULL)
1396
+ SQL (0.000410) COMMIT
1397
+ SQL (0.000447) BEGIN
1398
+ SQL (0.000687) INSERT INTO users (`name`) VALUES(NULL)
1399
+ SQL (0.000568) COMMIT
1400
+ SQL (0.000730) BEGIN
1401
+ SQL (0.000684) INSERT INTO users (`name`) VALUES(NULL)
1402
+ SQL (0.000354) COMMIT
1403
+ SQL (0.001721) BEGIN
1404
+ EncUser Update (0.000861) UPDATE users SET `name` = '$�pm�Ϋ�h-�>i[' WHERE id = 765
1405
+ SQL (0.000491) COMMIT
1406
+ EncUser Load (0.005347) SELECT * FROM users WHERE (users.id = 765) LIMIT 1
1407
+ RawUser Load (0.001243) SELECT * FROM users WHERE (users.id = 765) LIMIT 1
1408
+ RawUser Columns (0.012272) SHOW FIELDS FROM users
1409
+ SQL (0.007964) BEGIN
1410
+ SQL (0.000717) INSERT INTO users (`name`) VALUES(NULL)
1411
+ SQL (0.000357) COMMIT
1412
+ SQL (0.000386) BEGIN
1413
+ SQL (0.000653) INSERT INTO users (`name`) VALUES(NULL)
1414
+ SQL (0.000549) COMMIT
1415
+ User Load (0.001555) SELECT * FROM users WHERE (users.id = 767) LIMIT 1
1416
+ Asset Columns (0.009659) SHOW FIELDS FROM assets
1417
+ SQL (0.076420) BEGIN
1418
+ SQL (0.000842) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:25:08', x'c09ec4dd98583036531665b17bf9c41e', '2006-09-12 11:25:08')
1419
+ SQL (0.000457) COMMIT
1420
+ Cap Columns (0.009529) SHOW FIELDS FROM caps
1421
+ SQL (0.007997) BEGIN
1422
+ SQL (0.000897) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:25:08', NULL, NULL, NULL, 81, '2006-09-12 11:25:08', 'pelle@neubia.com')
1423
+ SQL (0.000763) COMMIT
1424
+ SQL (0.000860) BEGIN
1425
+ Cap Update (0.001060) UPDATE caps SET `created_at` = '2006-09-12 11:25:08', `key_hash` = 'edd0d9583a1591f3273880ef808c43d68fbd30d6', `key` = NULL, `asset_id` = 81, `email` = 'pelle@neubia.com', `shared_key` = x'3681c074803183b36c6cd20f19fc747a099e9e021d29d372e95c078815f8035d', `updated_at` = '2006-09-12 11:25:08' WHERE id = 115
1426
+ SQL (0.000413) COMMIT
1427
+ Cap Load (0.002387) SELECT * FROM caps WHERE (caps.`key_hash` = 'edd0d9583a1591f3273880ef808c43d68fbd30d6' ) LIMIT 1
1428
+ Asset Load (0.002618) SELECT * FROM assets WHERE (assets.id = 81) LIMIT 1
1429
+ AssetRaw Load (0.001481) SELECT * FROM assets WHERE (assets.id = 81) LIMIT 1
1430
+ AssetRaw Columns (0.009177) SHOW FIELDS FROM assets
1431
+ SQL (0.007304) BEGIN
1432
+ SQL (0.000845) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:25:08', NULL, NULL, NULL, 81, '2006-09-12 11:25:08', 'bob@bob.com')
1433
+ SQL (0.000512) COMMIT
1434
+ SQL (0.000418) BEGIN
1435
+ Cap Update (0.002693) UPDATE caps SET `created_at` = '2006-09-12 11:25:08', `key_hash` = '920e7c6d1f75d93f83fb239bf5e13e7c2a5eda6a', `key` = NULL, `asset_id` = 81, `email` = 'bob@bob.com', `shared_key` = x'f72da0b6d47d25da1ca76ead6d7282c003646b11d175138dc789cc1670a90db0', `updated_at` = '2006-09-12 11:25:08' WHERE id = 116
1436
+ SQL (0.000437) COMMIT
1437
+ Cap Load (0.002335) SELECT * FROM caps WHERE (caps.`key_hash` = '920e7c6d1f75d93f83fb239bf5e13e7c2a5eda6a' ) LIMIT 1
1438
+ Asset Load (0.001476) SELECT * FROM assets WHERE (assets.id = 81) LIMIT 1
1439
+ User Columns (0.008641) SHOW FIELDS FROM users
1440
+ SQL (0.007260) BEGIN
1441
+ SQL (0.005412) INSERT INTO users (`name`) VALUES(NULL)
1442
+ SQL (0.000469) COMMIT
1443
+ Secret Load (0.002237) SELECT * FROM secrets WHERE (secrets.user_id = 768) 
1444
+ Secret Columns (0.011759) SHOW FIELDS FROM secrets
1445
+ SQL (0.007594) BEGIN
1446
+ SQL (0.001470) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 768, NULL)
1447
+ SQL (0.000616) COMMIT
1448
+ User Load (0.001829) SELECT * FROM users WHERE (users.id = 768) LIMIT 1
1449
+ SQL (0.000888) BEGIN
1450
+ Secret Update (0.001160) UPDATE secrets SET `user_id` = 768, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 89
1451
+ SQL (0.000631) COMMIT
1452
+ Child Load (0.002397) SELECT * FROM children WHERE (children.secret_id = 89) 
1453
+ Child Columns (0.014718) SHOW FIELDS FROM children
1454
+ SQL (0.000704) BEGIN
1455
+ SQL (0.000972) INSERT INTO children (`secret_id`, `email`) VALUES(89, NULL)
1456
+ SQL (0.000528) COMMIT
1457
+ SQL (0.000594) BEGIN
1458
+ Secret Load (0.002426) SELECT * FROM secrets WHERE (secrets.id = 89) LIMIT 1
1459
+ User Load (0.001704) SELECT * FROM users WHERE (users.id = 768) LIMIT 1
1460
+ Child Update (0.001495) UPDATE children SET `secret_id` = 89, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 74
1461
+ SQL (0.000580) COMMIT
1462
+ SQL (0.000480) BEGIN
1463
+ SQL (0.007008) INSERT INTO users (`name`) VALUES('bob')
1464
+ SQL (0.000701) COMMIT
1465
+ SQL (0.000663) BEGIN
1466
+ SQL (0.000932) INSERT INTO users (`name`) VALUES(NULL)
1467
+ SQL (0.000681) COMMIT
1468
+ SQL (0.000667) BEGIN
1469
+ SQL (0.005160) INSERT INTO users (`name`) VALUES(NULL)
1470
+ SQL (0.000613) COMMIT
1471
+ SQL (0.008083) BEGIN
1472
+ SQL (0.000764) INSERT INTO users (`name`) VALUES(NULL)
1473
+ SQL (0.000379) COMMIT
1474
+ SQL (0.000479) BEGIN
1475
+ SQL (0.000783) INSERT INTO users (`name`) VALUES(NULL)
1476
+ SQL (0.000847) COMMIT
1477
+ SQL (0.000426) BEGIN
1478
+ SQL (0.000747) INSERT INTO users (`name`) VALUES(NULL)
1479
+ SQL (0.000442) COMMIT
1480
+ User Load (0.008004) SELECT * FROM users WHERE (users.id = 774) LIMIT 1
1481
+ SQL (0.000497) BEGIN
1482
+ SQL (0.000757) INSERT INTO users (`name`) VALUES(NULL)
1483
+ SQL (0.000387) COMMIT
1484
+ SQL (0.002528) BEGIN
1485
+ SQL (0.008270) INSERT INTO users (`name`) VALUES(NULL)
1486
+ SQL (0.000416) COMMIT
1487
+ User Load (0.001930) SELECT * FROM users WHERE (users.id = 776) LIMIT 1
1488
+ EncUser Columns (0.008370) SHOW FIELDS FROM users
1489
+ SQL (0.010897) BEGIN
1490
+ SQL (0.000737) INSERT INTO users (`name`) VALUES(NULL)
1491
+ SQL (0.000393) COMMIT
1492
+ SQL (0.000513) BEGIN
1493
+ SQL (0.004602) INSERT INTO users (`name`) VALUES(NULL)
1494
+ SQL (0.000381) COMMIT
1495
+ SQL (0.000428) BEGIN
1496
+ SQL (0.001814) INSERT INTO users (`name`) VALUES(NULL)
1497
+ SQL (0.000884) COMMIT
1498
+ SQL (0.003620) BEGIN
1499
+ SQL (0.000708) INSERT INTO users (`name`) VALUES(NULL)
1500
+ SQL (0.000354) COMMIT
1501
+ SQL (0.001073) BEGIN
1502
+ SQL (0.000949) INSERT INTO users (`name`) VALUES(NULL)
1503
+ SQL (0.000579) COMMIT
1504
+ SQL (0.000555) BEGIN
1505
+ EncUser Update (0.001442) UPDATE users SET `name` = '�p(�\'�;л/9�,' WHERE id = 781
1506
+ SQL (0.000644) COMMIT
1507
+ EncUser Load (0.001663) SELECT * FROM users WHERE (users.id = 781) LIMIT 1
1508
+ RawUser Load (0.001525) SELECT * FROM users WHERE (users.id = 781) LIMIT 1
1509
+ RawUser Columns (0.017432) SHOW FIELDS FROM users
1510
+ SQL (0.000646) BEGIN
1511
+ SQL (0.001155) INSERT INTO users (`name`) VALUES(NULL)
1512
+ SQL (0.000553) COMMIT
1513
+ SQL (0.000399) BEGIN
1514
+ SQL (0.000672) INSERT INTO users (`name`) VALUES(NULL)
1515
+ SQL (0.004658) COMMIT
1516
+ User Load (0.003889) SELECT * FROM users WHERE (users.id = 783) LIMIT 1
1517
+ Asset Columns (0.015356) SHOW FIELDS FROM assets
1518
+ SQL (0.007838) BEGIN
1519
+ SQL (0.000854) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:26:49', x'2d5b2947a6a25aba72a691ba1fb8153d', '2006-09-12 11:26:49')
1520
+ SQL (0.000404) COMMIT
1521
+ Cap Columns (0.011002) SHOW FIELDS FROM caps
1522
+ SQL (0.007203) BEGIN
1523
+ SQL (0.001221) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:26:49', NULL, NULL, NULL, 82, '2006-09-12 11:26:49', 'pelle@neubia.com')
1524
+ SQL (0.000832) COMMIT
1525
+ SQL (0.000393) BEGIN
1526
+ Cap Update (0.001010) UPDATE caps SET `created_at` = '2006-09-12 11:26:49', `key_hash` = '1d89f3726c69ae0bd240a6b3ce02a18e3dc434de', `key` = NULL, `asset_id` = 82, `email` = 'pelle@neubia.com', `shared_key` = x'9ac120b9621462ba64587978f30faae0e3ec76d0218794e89c33d35742a76bd4', `updated_at` = '2006-09-12 11:26:49' WHERE id = 117
1527
+ SQL (0.000427) COMMIT
1528
+ Cap Load (0.002609) SELECT * FROM caps WHERE (caps.`key_hash` = '1d89f3726c69ae0bd240a6b3ce02a18e3dc434de' ) LIMIT 1
1529
+ Asset Load (0.001474) SELECT * FROM assets WHERE (assets.id = 82) LIMIT 1
1530
+ AssetRaw Load (0.001502) SELECT * FROM assets WHERE (assets.id = 82) LIMIT 1
1531
+ AssetRaw Columns (0.031005) SHOW FIELDS FROM assets
1532
+ SQL (0.007376) BEGIN
1533
+ SQL (0.001140) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:26:49', NULL, NULL, NULL, 82, '2006-09-12 11:26:49', 'bob@bob.com')
1534
+ SQL (0.000408) COMMIT
1535
+ SQL (0.000422) BEGIN
1536
+ Cap Update (0.000992) UPDATE caps SET `created_at` = '2006-09-12 11:26:49', `key_hash` = '2f64e76acf6b05f01487f55d826dbccd60ca8462', `key` = NULL, `asset_id` = 82, `email` = 'bob@bob.com', `shared_key` = x'1dc3519ceb3552668d067fb2410082450c4a42fbb00c3b81543ee6a64b721316', `updated_at` = '2006-09-12 11:26:49' WHERE id = 118
1537
+ SQL (0.002120) COMMIT
1538
+ Cap Load (0.002794) SELECT * FROM caps WHERE (caps.`key_hash` = '2f64e76acf6b05f01487f55d826dbccd60ca8462' ) LIMIT 1
1539
+ Asset Load (0.001489) SELECT * FROM assets WHERE (assets.id = 82) LIMIT 1
1540
+ User Columns (0.015714) SHOW FIELDS FROM users
1541
+ SQL (0.015609) BEGIN
1542
+ SQL (0.000783) INSERT INTO users (`name`) VALUES(NULL)
1543
+ SQL (0.000420) COMMIT
1544
+ Secret Load (0.002297) SELECT * FROM secrets WHERE (secrets.user_id = 784) 
1545
+ Secret Columns (0.011242) SHOW FIELDS FROM secrets
1546
+ SQL (0.008327) BEGIN
1547
+ SQL (0.000777) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 784, NULL)
1548
+ SQL (0.000925) COMMIT
1549
+ User Load (0.001267) SELECT * FROM users WHERE (users.id = 784) LIMIT 1
1550
+ SQL (0.000465) BEGIN
1551
+ Secret Update (0.001242) UPDATE secrets SET `user_id` = 784, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 90
1552
+ SQL (0.000426) COMMIT
1553
+ Child Load (0.001527) SELECT * FROM children WHERE (children.secret_id = 90) 
1554
+ Child Columns (0.009243) SHOW FIELDS FROM children
1555
+ SQL (0.007407) BEGIN
1556
+ SQL (0.001073) INSERT INTO children (`secret_id`, `email`) VALUES(90, NULL)
1557
+ SQL (0.000366) COMMIT
1558
+ SQL (0.000324) BEGIN
1559
+ Secret Load (0.001712) SELECT * FROM secrets WHERE (secrets.id = 90) LIMIT 1
1560
+ User Load (0.001708) SELECT * FROM users WHERE (users.id = 784) LIMIT 1
1561
+ Child Update (0.002381) UPDATE children SET `secret_id` = 90, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 75
1562
+ SQL (0.000438) COMMIT
1563
+ SQL (0.000310) BEGIN
1564
+ SQL (0.004453) INSERT INTO users (`name`) VALUES('bob')
1565
+ SQL (0.000757) COMMIT
1566
+ SQL (0.000433) BEGIN
1567
+ SQL (0.001087) INSERT INTO users (`name`) VALUES(NULL)
1568
+ SQL (0.000454) COMMIT
1569
+ SQL (0.000479) BEGIN
1570
+ SQL (0.000786) INSERT INTO users (`name`) VALUES(NULL)
1571
+ SQL (0.000607) COMMIT
1572
+ SQL (0.000447) BEGIN
1573
+ SQL (0.000687) INSERT INTO users (`name`) VALUES(NULL)
1574
+ SQL (0.000461) COMMIT
1575
+ SQL (0.000424) BEGIN
1576
+ SQL (0.000682) INSERT INTO users (`name`) VALUES(NULL)
1577
+ SQL (0.000409) COMMIT
1578
+ SQL (0.000500) BEGIN
1579
+ SQL (0.000674) INSERT INTO users (`name`) VALUES(NULL)
1580
+ SQL (0.000362) COMMIT
1581
+ User Load (0.001477) SELECT * FROM users WHERE (users.id = 790) LIMIT 1
1582
+ SQL (0.000478) BEGIN
1583
+ SQL (0.000981) INSERT INTO users (`name`) VALUES(NULL)
1584
+ SQL (0.000458) COMMIT
1585
+ SQL (0.000381) BEGIN
1586
+ SQL (0.001122) INSERT INTO users (`name`) VALUES(NULL)
1587
+ SQL (0.000397) COMMIT
1588
+ User Load (0.001489) SELECT * FROM users WHERE (users.id = 792) LIMIT 1
1589
+ EncUser Columns (0.015999) SHOW FIELDS FROM users
1590
+ SQL (0.007810) BEGIN
1591
+ SQL (0.000762) INSERT INTO users (`name`) VALUES(NULL)
1592
+ SQL (0.000365) COMMIT
1593
+ SQL (0.000437) BEGIN
1594
+ SQL (0.000677) INSERT INTO users (`name`) VALUES(NULL)
1595
+ SQL (0.004136) COMMIT
1596
+ SQL (0.000470) BEGIN
1597
+ SQL (0.000775) INSERT INTO users (`name`) VALUES(NULL)
1598
+ SQL (0.000470) COMMIT
1599
+ SQL (0.000452) BEGIN
1600
+ SQL (0.005242) INSERT INTO users (`name`) VALUES(NULL)
1601
+ SQL (0.000402) COMMIT
1602
+ SQL (0.000421) BEGIN
1603
+ SQL (0.000729) INSERT INTO users (`name`) VALUES(NULL)
1604
+ SQL (0.000473) COMMIT
1605
+ SQL (0.000998) BEGIN
1606
+ EncUser Update (0.000916) UPDATE users SET `name` = 'A�Y����L{׻x�' WHERE id = 797
1607
+ SQL (0.000414) COMMIT
1608
+ EncUser Load (0.001173) SELECT * FROM users WHERE (users.id = 797) LIMIT 1
1609
+ RawUser Load (0.002745) SELECT * FROM users WHERE (users.id = 797) LIMIT 1
1610
+ RawUser Columns (0.008998) SHOW FIELDS FROM users
1611
+ SQL (0.008215) BEGIN
1612
+ SQL (0.000739) INSERT INTO users (`name`) VALUES(NULL)
1613
+ SQL (0.000535) COMMIT
1614
+ SQL (0.000465) BEGIN
1615
+ SQL (0.000726) INSERT INTO users (`name`) VALUES(NULL)
1616
+ SQL (0.000661) COMMIT
1617
+ User Load (0.001112) SELECT * FROM users WHERE (users.id = 799) LIMIT 1
1618
+ Asset Columns (0.008851) SHOW FIELDS FROM assets
1619
+ SQL (0.008201) BEGIN
1620
+ SQL (0.000827) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:31:13', x'ad8c0d59085984f9a729412ecae036a8', '2006-09-12 11:31:13')
1621
+ SQL (0.000405) COMMIT
1622
+ Cap Columns (0.011951) SHOW FIELDS FROM caps
1623
+ SQL (0.007257) BEGIN
1624
+ SQL (0.000856) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:31:13', NULL, NULL, NULL, 83, '2006-09-12 11:31:13', 'pelle@neubia.com')
1625
+ SQL (0.000410) COMMIT
1626
+ SQL (0.000369) BEGIN
1627
+ Cap Update (0.001000) UPDATE caps SET `created_at` = '2006-09-12 11:31:13', `key_hash` = '4916d1780b2a59ccd12f1395736ea07d07179f85', `key` = NULL, `asset_id` = 83, `email` = 'pelle@neubia.com', `shared_key` = x'bb26aac820d00e661c6031df6b6990382d1f530a30eed92ebd6985f94a2549fb', `updated_at` = '2006-09-12 11:31:13' WHERE id = 119
1628
+ SQL (0.000449) COMMIT
1629
+ Cap Load (0.002809) SELECT * FROM caps WHERE (caps.`key_hash` = '4916d1780b2a59ccd12f1395736ea07d07179f85' ) LIMIT 1
1630
+ Asset Load (0.001867) SELECT * FROM assets WHERE (assets.id = 83) LIMIT 1
1631
+ AssetRaw Load (0.001618) SELECT * FROM assets WHERE (assets.id = 83) LIMIT 1
1632
+ AssetRaw Columns (0.008618) SHOW FIELDS FROM assets
1633
+ SQL (0.007680) BEGIN
1634
+ SQL (0.000851) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:31:13', NULL, NULL, NULL, 83, '2006-09-12 11:31:13', 'bob@bob.com')
1635
+ SQL (0.000377) COMMIT
1636
+ SQL (0.000352) BEGIN
1637
+ Cap Update (0.001029) UPDATE caps SET `created_at` = '2006-09-12 11:31:13', `key_hash` = '89a393289193fcad79b86812b3ab3a92aa9a8ba5', `key` = NULL, `asset_id` = 83, `email` = 'bob@bob.com', `shared_key` = x'610744e9d84b0aa9c4da751ee4ff848018b41175b1baebcce54343e6559e5bbd', `updated_at` = '2006-09-12 11:31:13' WHERE id = 120
1638
+ SQL (0.000420) COMMIT
1639
+ Cap Load (0.003375) SELECT * FROM caps WHERE (caps.`key_hash` = '89a393289193fcad79b86812b3ab3a92aa9a8ba5' ) LIMIT 1
1640
+ Asset Load (0.001602) SELECT * FROM assets WHERE (assets.id = 83) LIMIT 1
1641
+ User Columns (0.010691) SHOW FIELDS FROM users
1642
+ SQL (0.011991) BEGIN
1643
+ SQL (0.000758) INSERT INTO users (`name`) VALUES(NULL)
1644
+ SQL (0.000375) COMMIT
1645
+ Secret Load (0.004698) SELECT * FROM secrets WHERE (secrets.user_id = 800) 
1646
+ Secret Columns (0.009914) SHOW FIELDS FROM secrets
1647
+ SQL (0.007770) BEGIN
1648
+ SQL (0.000810) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 800, NULL)
1649
+ SQL (0.000712) COMMIT
1650
+ User Load (0.001231) SELECT * FROM users WHERE (users.id = 800) LIMIT 1
1651
+ SQL (0.000435) BEGIN
1652
+ Secret Update (0.001232) UPDATE secrets SET `user_id` = 800, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 91
1653
+ SQL (0.000436) COMMIT
1654
+ Child Load (0.002208) SELECT * FROM children WHERE (children.secret_id = 91) 
1655
+ Child Columns (0.008128) SHOW FIELDS FROM children
1656
+ SQL (0.007150) BEGIN
1657
+ SQL (0.000745) INSERT INTO children (`secret_id`, `email`) VALUES(91, NULL)
1658
+ SQL (0.000514) COMMIT
1659
+ SQL (0.000331) BEGIN
1660
+ Secret Load (0.001554) SELECT * FROM secrets WHERE (secrets.id = 91) LIMIT 1
1661
+ User Load (0.001348) SELECT * FROM users WHERE (users.id = 800) LIMIT 1
1662
+ Child Update (0.000965) UPDATE children SET `secret_id` = 91, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 76
1663
+ SQL (0.000394) COMMIT
1664
+ SQL (0.000340) BEGIN
1665
+ SQL (0.004168) INSERT INTO users (`name`) VALUES('bob')
1666
+ SQL (0.000433) COMMIT
1667
+ SQL (0.000484) BEGIN
1668
+ SQL (0.000721) INSERT INTO users (`name`) VALUES(NULL)
1669
+ SQL (0.000469) COMMIT
1670
+ SQL (0.000525) BEGIN
1671
+ SQL (0.004450) INSERT INTO users (`name`) VALUES(NULL)
1672
+ SQL (0.000405) COMMIT
1673
+ SQL (0.004405) BEGIN
1674
+ SQL (0.000747) INSERT INTO users (`name`) VALUES(NULL)
1675
+ SQL (0.000402) COMMIT
1676
+ SQL (0.000453) BEGIN
1677
+ SQL (0.000776) INSERT INTO users (`name`) VALUES(NULL)
1678
+ SQL (0.000499) COMMIT
1679
+ SQL (0.000461) BEGIN
1680
+ SQL (0.000707) INSERT INTO users (`name`) VALUES(NULL)
1681
+ SQL (0.002802) COMMIT
1682
+ User Load (0.004736) SELECT * FROM users WHERE (users.id = 806) LIMIT 1
1683
+ SQL (0.000561) BEGIN
1684
+ SQL (0.000895) INSERT INTO users (`name`) VALUES(NULL)
1685
+ SQL (0.000407) COMMIT
1686
+ SQL (0.000789) BEGIN
1687
+ SQL (0.000699) INSERT INTO users (`name`) VALUES(NULL)
1688
+ SQL (0.000401) COMMIT
1689
+ User Load (0.001108) SELECT * FROM users WHERE (users.id = 808) LIMIT 1
1690
+ EncUser Columns (0.018513) SHOW FIELDS FROM users
1691
+ SQL (0.007791) BEGIN
1692
+ SQL (0.000760) INSERT INTO users (`name`) VALUES(NULL)
1693
+ SQL (0.000359) COMMIT
1694
+ SQL (0.000448) BEGIN
1695
+ SQL (0.000670) INSERT INTO users (`name`) VALUES(NULL)
1696
+ SQL (0.000544) COMMIT
1697
+ SQL (0.000502) BEGIN
1698
+ SQL (0.000720) INSERT INTO users (`name`) VALUES(NULL)
1699
+ SQL (0.000363) COMMIT
1700
+ SQL (0.000559) BEGIN
1701
+ SQL (0.000851) INSERT INTO users (`name`) VALUES(NULL)
1702
+ SQL (0.000525) COMMIT
1703
+ SQL (0.000440) BEGIN
1704
+ SQL (0.000891) INSERT INTO users (`name`) VALUES(NULL)
1705
+ SQL (0.000401) COMMIT
1706
+ SQL (0.000355) BEGIN
1707
+ EncUser Update (0.000882) UPDATE users SET `name` = '��٘f���9Y���' WHERE id = 813
1708
+ SQL (0.000387) COMMIT
1709
+ EncUser Load (0.002326) SELECT * FROM users WHERE (users.id = 813) LIMIT 1
1710
+ RawUser Load (0.001613) SELECT * FROM users WHERE (users.id = 813) LIMIT 1
1711
+ RawUser Columns (0.008361) SHOW FIELDS FROM users
1712
+ SQL (0.022973) BEGIN
1713
+ SQL (0.001248) INSERT INTO users (`name`) VALUES(NULL)
1714
+ SQL (0.000374) COMMIT
1715
+ SQL (0.000386) BEGIN
1716
+ SQL (0.000697) INSERT INTO users (`name`) VALUES(NULL)
1717
+ SQL (0.000392) COMMIT
1718
+ User Load (0.001490) SELECT * FROM users WHERE (users.id = 815) LIMIT 1
1719
+ Asset Columns (0.009044) SHOW FIELDS FROM assets
1720
+ SQL (0.007366) BEGIN
1721
+ SQL (0.000850) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:33:14', x'7d3de6830d11a7839bacb0874d087313', '2006-09-12 11:33:14')
1722
+ SQL (0.000414) COMMIT
1723
+ Cap Columns (0.013539) SHOW FIELDS FROM caps
1724
+ SQL (0.008684) BEGIN
1725
+ SQL (0.000892) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:33:14', NULL, NULL, NULL, 84, '2006-09-12 11:33:14', 'pelle@neubia.com')
1726
+ SQL (0.000367) COMMIT
1727
+ SQL (0.001017) BEGIN
1728
+ Cap Update (0.001016) UPDATE caps SET `created_at` = '2006-09-12 11:33:14', `key_hash` = '38b71081b28d3629bd1268a643f6d40951602a81', `key` = NULL, `asset_id` = 84, `email` = 'pelle@neubia.com', `shared_key` = x'535e1a610c0b1c6b2da679130f12286ee709f9b376c01703f17acfead31f1ba7', `updated_at` = '2006-09-12 11:33:14' WHERE id = 121
1729
+ SQL (0.000693) COMMIT
1730
+ Cap Load (0.002539) SELECT * FROM caps WHERE (caps.`key_hash` = '38b71081b28d3629bd1268a643f6d40951602a81' ) LIMIT 1
1731
+ Asset Load (0.001529) SELECT * FROM assets WHERE (assets.id = 84) LIMIT 1
1732
+ AssetRaw Load (0.001468) SELECT * FROM assets WHERE (assets.id = 84) LIMIT 1
1733
+ AssetRaw Columns (0.009492) SHOW FIELDS FROM assets
1734
+ SQL (0.009153) BEGIN
1735
+ SQL (0.001230) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:33:14', NULL, NULL, NULL, 84, '2006-09-12 11:33:14', 'bob@bob.com')
1736
+ SQL (0.000381) COMMIT
1737
+ SQL (0.000340) BEGIN
1738
+ Cap Update (0.001274) UPDATE caps SET `created_at` = '2006-09-12 11:33:14', `key_hash` = '115e4c92cd98be1287a8d615befa4d9d1cc0682d', `key` = NULL, `asset_id` = 84, `email` = 'bob@bob.com', `shared_key` = x'7d76e8bc228ae37947da29701e8a693ad8967596f4a50ea0897eea67e01af486', `updated_at` = '2006-09-12 11:33:14' WHERE id = 122
1739
+ SQL (0.000436) COMMIT
1740
+ Cap Load (0.003440) SELECT * FROM caps WHERE (caps.`key_hash` = '115e4c92cd98be1287a8d615befa4d9d1cc0682d' ) LIMIT 1
1741
+ Asset Load (0.001876) SELECT * FROM assets WHERE (assets.id = 84) LIMIT 1
1742
+ User Columns (0.008350) SHOW FIELDS FROM users
1743
+ SQL (0.011103) BEGIN
1744
+ SQL (0.000858) INSERT INTO users (`name`) VALUES(NULL)
1745
+ SQL (0.000478) COMMIT
1746
+ Secret Load (0.002130) SELECT * FROM secrets WHERE (secrets.user_id = 816) 
1747
+ Secret Columns (0.008926) SHOW FIELDS FROM secrets
1748
+ SQL (0.007785) BEGIN
1749
+ SQL (0.000830) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 816, NULL)
1750
+ SQL (0.000381) COMMIT
1751
+ User Load (0.001247) SELECT * FROM users WHERE (users.id = 816) LIMIT 1
1752
+ SQL (0.000940) BEGIN
1753
+ Secret Update (0.000923) UPDATE secrets SET `user_id` = 816, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 92
1754
+ SQL (0.000403) COMMIT
1755
+ Child Load (0.002096) SELECT * FROM children WHERE (children.secret_id = 92) 
1756
+ Child Columns (0.011450) SHOW FIELDS FROM children
1757
+ SQL (0.007148) BEGIN
1758
+ SQL (0.000765) INSERT INTO children (`secret_id`, `email`) VALUES(92, NULL)
1759
+ SQL (0.000390) COMMIT
1760
+ SQL (0.000320) BEGIN
1761
+ Secret Load (0.001572) SELECT * FROM secrets WHERE (secrets.id = 92) LIMIT 1
1762
+ User Load (0.001408) SELECT * FROM users WHERE (users.id = 816) LIMIT 1
1763
+ Child Update (0.000967) UPDATE children SET `secret_id` = 92, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 77
1764
+ SQL (0.000386) COMMIT
1765
+ SQL (0.000311) BEGIN
1766
+ SQL (0.000690) INSERT INTO users (`name`) VALUES('bob')
1767
+ SQL (0.000488) COMMIT
1768
+ SQL (0.000442) BEGIN
1769
+ SQL (0.000936) INSERT INTO users (`name`) VALUES(NULL)
1770
+ SQL (0.000753) COMMIT
1771
+ SQL (0.001979) BEGIN
1772
+ SQL (0.000857) INSERT INTO users (`name`) VALUES(NULL)
1773
+ SQL (0.000488) COMMIT
1774
+ SQL (0.000493) BEGIN
1775
+ SQL (0.000687) INSERT INTO users (`name`) VALUES(NULL)
1776
+ SQL (0.002424) COMMIT
1777
+ SQL (0.000443) BEGIN
1778
+ SQL (0.000732) INSERT INTO users (`name`) VALUES(NULL)
1779
+ SQL (0.000370) COMMIT
1780
+ SQL (0.000414) BEGIN
1781
+ SQL (0.001050) INSERT INTO users (`name`) VALUES(NULL)
1782
+ SQL (0.000786) COMMIT
1783
+ User Load (0.001166) SELECT * FROM users WHERE (users.id = 822) LIMIT 1
1784
+ SQL (0.000458) BEGIN
1785
+ SQL (0.000728) INSERT INTO users (`name`) VALUES(NULL)
1786
+ SQL (0.001336) COMMIT
1787
+ SQL (0.004302) BEGIN
1788
+ SQL (0.000996) INSERT INTO users (`name`) VALUES(NULL)
1789
+ SQL (0.000541) COMMIT
1790
+ User Load (0.001189) SELECT * FROM users WHERE (users.id = 824) LIMIT 1
1791
+ EncUser Columns (0.014996) SHOW FIELDS FROM users
1792
+ SQL (0.007176) BEGIN
1793
+ SQL (0.000760) INSERT INTO users (`name`) VALUES(NULL)
1794
+ SQL (0.000351) COMMIT
1795
+ SQL (0.000833) BEGIN
1796
+ SQL (0.002001) INSERT INTO users (`name`) VALUES(NULL)
1797
+ SQL (0.000462) COMMIT
1798
+ SQL (0.000458) BEGIN
1799
+ SQL (0.000757) INSERT INTO users (`name`) VALUES(NULL)
1800
+ SQL (0.000343) COMMIT
1801
+ SQL (0.010488) BEGIN
1802
+ SQL (0.000765) INSERT INTO users (`name`) VALUES(NULL)
1803
+ SQL (0.000347) COMMIT
1804
+ SQL (0.000742) BEGIN
1805
+ SQL (0.000697) INSERT INTO users (`name`) VALUES(NULL)
1806
+ SQL (0.000352) COMMIT
1807
+ SQL (0.002533) BEGIN
1808
+ EncUser Update (0.000914) UPDATE users SET `name` = 'Н{N|`��6���� ' WHERE id = 829
1809
+ SQL (0.000381) COMMIT
1810
+ EncUser Load (0.001600) SELECT * FROM users WHERE (users.id = 829) LIMIT 1
1811
+ RawUser Load (0.003318) SELECT * FROM users WHERE (users.id = 829) LIMIT 1
1812
+ RawUser Columns (0.008089) SHOW FIELDS FROM users
1813
+ SQL (0.007895) BEGIN
1814
+ SQL (0.000755) INSERT INTO users (`name`) VALUES(NULL)
1815
+ SQL (0.000447) COMMIT
1816
+ SQL (0.000390) BEGIN
1817
+ SQL (0.000709) INSERT INTO users (`name`) VALUES(NULL)
1818
+ SQL (0.000405) COMMIT
1819
+ User Load (0.001163) SELECT * FROM users WHERE (users.id = 831) LIMIT 1
1820
+ Asset Columns (0.009485) SHOW FIELDS FROM assets
1821
+ SQL (0.007148) BEGIN
1822
+ SQL (0.000853) INSERT INTO assets (`updated_at`, `title`, `created_at`) VALUES('2006-09-12 11:36:46', x'fbc515995824436e06bc579dbb44c9d4', '2006-09-12 11:36:46')
1823
+ SQL (0.000397) COMMIT
1824
+ Cap Columns (0.013860) SHOW FIELDS FROM caps
1825
+ SQL (0.007196) BEGIN
1826
+ SQL (0.000879) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:36:46', NULL, NULL, NULL, 85, '2006-09-12 11:36:46', 'pelle@neubia.com')
1827
+ SQL (0.000373) COMMIT
1828
+ SQL (0.000347) BEGIN
1829
+ Cap Update (0.001031) UPDATE caps SET `created_at` = '2006-09-12 11:36:46', `key_hash` = '0c86ea0ccbfe6b69cfdaa30185ffc32c16c8b9ed', `key` = NULL, `asset_id` = 85, `email` = 'pelle@neubia.com', `shared_key` = x'cffcfa97665a7fb76755387975bb10f33255fbd9460adf15613fc161242260a7', `updated_at` = '2006-09-12 11:36:46' WHERE id = 123
1830
+ SQL (0.000399) COMMIT
1831
+ Cap Load (0.002820) SELECT * FROM caps WHERE (caps.`key_hash` = '0c86ea0ccbfe6b69cfdaa30185ffc32c16c8b9ed' ) LIMIT 1
1832
+ Asset Load (0.001556) SELECT * FROM assets WHERE (assets.id = 85) LIMIT 1
1833
+ AssetRaw Load (0.001460) SELECT * FROM assets WHERE (assets.id = 85) LIMIT 1
1834
+ AssetRaw Columns (0.008197) SHOW FIELDS FROM assets
1835
+ SQL (0.008577) BEGIN
1836
+ SQL (0.001227) INSERT INTO caps (`updated_at`, `key_hash`, `shared_key`, `key`, `asset_id`, `created_at`, `email`) VALUES('2006-09-12 11:36:46', NULL, NULL, NULL, 85, '2006-09-12 11:36:46', 'bob@bob.com')
1837
+ SQL (0.000387) COMMIT
1838
+ SQL (0.000350) BEGIN
1839
+ Cap Update (0.001302) UPDATE caps SET `created_at` = '2006-09-12 11:36:46', `key_hash` = '841c4de862e6aa7d4c8fbe76585195a72552711c', `key` = NULL, `asset_id` = 85, `email` = 'bob@bob.com', `shared_key` = x'1d3ff3ac0850008eda9e664efa876c05612ac94f5353f1cc00738e20b584a5dd', `updated_at` = '2006-09-12 11:36:46' WHERE id = 124
1840
+ SQL (0.000392) COMMIT
1841
+ Cap Load (0.011046) SELECT * FROM caps WHERE (caps.`key_hash` = '841c4de862e6aa7d4c8fbe76585195a72552711c' ) LIMIT 1
1842
+ Asset Load (0.002017) SELECT * FROM assets WHERE (assets.id = 85) LIMIT 1
1843
+ User Columns (0.008183) SHOW FIELDS FROM users
1844
+ SQL (0.007376) BEGIN
1845
+ SQL (0.001228) INSERT INTO users (`name`) VALUES(NULL)
1846
+ SQL (0.000510) COMMIT
1847
+ Secret Load (0.002068) SELECT * FROM secrets WHERE (secrets.user_id = 832) 
1848
+ Secret Columns (0.011577) SHOW FIELDS FROM secrets
1849
+ SQL (0.007030) BEGIN
1850
+ SQL (0.000854) INSERT INTO secrets (`name`, `user_id`, `email`) VALUES(NULL, 832, NULL)
1851
+ SQL (0.000771) COMMIT
1852
+ User Load (0.001190) SELECT * FROM users WHERE (users.id = 832) LIMIT 1
1853
+ SQL (0.000431) BEGIN
1854
+ Secret Update (0.001453) UPDATE secrets SET `user_id` = 832, `email` = NULL, `name` = x'c42d49cb44c44d9e9288b5d94c6dda6b' WHERE id = 93
1855
+ SQL (0.000439) COMMIT
1856
+ Child Load (0.002923) SELECT * FROM children WHERE (children.secret_id = 93) 
1857
+ Child Columns (0.008063) SHOW FIELDS FROM children
1858
+ SQL (0.007487) BEGIN
1859
+ SQL (0.000874) INSERT INTO children (`secret_id`, `email`) VALUES(93, NULL)
1860
+ SQL (0.000378) COMMIT
1861
+ SQL (0.000313) BEGIN
1862
+ Secret Load (0.001670) SELECT * FROM secrets WHERE (secrets.id = 93) LIMIT 1
1863
+ User Load (0.001372) SELECT * FROM users WHERE (users.id = 832) LIMIT 1
1864
+ Child Update (0.000934) UPDATE children SET `secret_id` = 93, `email` = '�PI36ZՖt;&��(|nF/�o�x8�A�a��' WHERE id = 78
1865
+ SQL (0.000387) COMMIT
1866
+ SQL (0.000330) BEGIN
1867
+ SQL (0.000773) INSERT INTO users (`name`) VALUES('bob')
1868
+ SQL (0.000402) COMMIT
1869
+ SQL (0.000449) BEGIN
1870
+ SQL (0.006272) INSERT INTO users (`name`) VALUES(NULL)
1871
+ SQL (0.000410) COMMIT
1872
+ SQL (0.000496) BEGIN
1873
+ SQL (0.000704) INSERT INTO users (`name`) VALUES(NULL)
1874
+ SQL (0.000400) COMMIT
1875
+ SQL (0.000407) BEGIN
1876
+ SQL (0.000675) INSERT INTO users (`name`) VALUES(NULL)
1877
+ SQL (0.000794) COMMIT
1878
+ SQL (0.000704) BEGIN
1879
+ SQL (0.000707) INSERT INTO users (`name`) VALUES(NULL)
1880
+ SQL (0.000365) COMMIT
1881
+ SQL (0.000414) BEGIN
1882
+ SQL (0.000729) INSERT INTO users (`name`) VALUES(NULL)
1883
+ SQL (0.000405) COMMIT
1884
+ User Load (0.001135) SELECT * FROM users WHERE (users.id = 838) LIMIT 1
1885
+ SQL (0.000511) BEGIN
1886
+ SQL (0.005746) INSERT INTO users (`name`) VALUES(NULL)
1887
+ SQL (0.000459) COMMIT
1888
+ SQL (0.000651) BEGIN
1889
+ SQL (0.000745) INSERT INTO users (`name`) VALUES(NULL)
1890
+ SQL (0.000407) COMMIT
1891
+ User Load (0.001108) SELECT * FROM users WHERE (users.id = 840) LIMIT 1
1892
+ EncUser Columns (0.012584) SHOW FIELDS FROM users
1893
+ SQL (0.010332) BEGIN
1894
+ SQL (0.000779) INSERT INTO users (`name`) VALUES(NULL)
1895
+ SQL (0.000391) COMMIT
1896
+ SQL (0.000449) BEGIN
1897
+ SQL (0.000670) INSERT INTO users (`name`) VALUES(NULL)
1898
+ SQL (0.000489) COMMIT
1899
+ SQL (0.000445) BEGIN
1900
+ SQL (0.000681) INSERT INTO users (`name`) VALUES(NULL)
1901
+ SQL (0.000344) COMMIT
1902
+ SQL (0.000434) BEGIN
1903
+ SQL (0.003799) INSERT INTO users (`name`) VALUES(NULL)
1904
+ SQL (0.000403) COMMIT
1905
+ SQL (0.000476) BEGIN
1906
+ SQL (0.000827) INSERT INTO users (`name`) VALUES(NULL)
1907
+ SQL (0.000473) COMMIT
1908
+ SQL (0.003649) BEGIN
1909
+ EncUser Update (0.000878) UPDATE users SET `name` = '��}g�V������' WHERE id = 845
1910
+ SQL (0.000384) COMMIT
1911
+ EncUser Load (0.001263) SELECT * FROM users WHERE (users.id = 845) LIMIT 1
1912
+ RawUser Load (0.001514) SELECT * FROM users WHERE (users.id = 845) LIMIT 1
1913
+ RawUser Columns (0.012883) SHOW FIELDS FROM users
1914
+ SQL (0.014925) BEGIN
1915
+ SQL (0.000721) INSERT INTO users (`name`) VALUES(NULL)
1916
+ SQL (0.000346) COMMIT
1917
+ SQL (0.000365) BEGIN
1918
+ SQL (0.002085) INSERT INTO users (`name`) VALUES(NULL)
1919
+ SQL (0.000440) COMMIT
1920
+ User Load (0.001222) SELECT * FROM users WHERE (users.id = 847) LIMIT 1
data/test/dsig_test.rb CHANGED
@@ -249,6 +249,28 @@ class EzCryptoTest < Test::Unit::TestCase
249
249
  assert trust.verify(cert)
250
250
  end
251
251
 
252
+ def test_public_key_load_from_pkyp
253
+ verifier=EzCrypto::Verifier.from_pkyp "e93e18114cbefaaa89fda908b09df63d3662879a"
254
+ wideword=EzCrypto::Verifier.from_file File.dirname(__FILE__) + "/wideword.net.cert"
255
+ assert_equal wideword.cert.to_s,verifier.cert.to_s
256
+ assert verifier
257
+ end
258
+
259
+ def test_register_public_key_at_pkyp
260
+ pub=EzCrypto::Verifier.from_file File.dirname(__FILE__) + "/wideword.net.cert"
261
+ assert_equal pub.digest,pub.register_with_pkyp
262
+ end
263
+
264
+ def test_create_register_and_fetch_public_key
265
+ signer=EzCrypto::Signer.generate
266
+ assert_equal signer.verifier.digest,signer.verifier.register_with_pkyp
267
+ verifier=EzCrypto::Verifier.from_pkyp signer.verifier.digest
268
+ sig=signer.sign "hello"
269
+ assert sig
270
+ assert verifier.verify( sig,"hello")
271
+ end
272
+
273
+
252
274
  def assert_signer(signer)
253
275
  assert signer
254
276
  assert signer.public_key
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ezcrypto
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.6.2
7
- date: 2006-08-15 00:00:00 -03:00
6
+ version: "0.7"
7
+ date: 2006-09-12 00:00:00 +02:00
8
8
  summary: Simplified encryption library.
9
9
  require_paths:
10
10
  - lib